Interface ResourceTheme<T extends ResourceTheme<T>>

Type Parameters:
T - The type of the dynamic theme.
All Superinterfaces:
BaseTheme<T>
All Known Implementing Classes:
AppTheme, AppWidgetTheme

public interface ResourceTheme<T extends ResourceTheme<T>> extends BaseTheme<T>
A BaseTheme to implement the resource theme.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the theme resource used by this theme.
    setThemeRes(int themeRes)
    Set the theme resource used by this theme.

    Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.BaseTheme

    isHost, setHost
  • Method Details

    • getThemeRes

      @StyleRes int getThemeRes()
      Returns the theme resource used by this theme.
      Returns:
      The theme resource used by this theme.
    • setThemeRes

      @NonNull T setThemeRes(@StyleRes int themeRes)
      Set the theme resource used by this theme.
      Parameters:
      themeRes - The theme resource to be set.
      Returns:
      The ResourceTheme object to allow for chaining of calls to set methods.