Interface BackgroundTheme<T extends BackgroundTheme<T>>
- Type Parameters:
T- The type of the dynamic theme.
- All Superinterfaces:
BaseTheme<T>
- All Known Subinterfaces:
DynamicColor<T>
- All Known Implementing Classes:
AppTheme,AppWidgetTheme
A
BaseTheme to implement the background theme.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the background color used by this theme.intgetBackgroundColor(boolean resolve) Returns the background color used by this theme.intgetBackgroundColor(boolean resolve, boolean inverse) Returns the background color used by this theme.intReturns the background tint color used by this theme.intgetTintBackgroundColor(boolean resolve) Returns the background tint color used by this theme.intgetTintBackgroundColor(boolean resolve, boolean inverse) Returns the background tint color used by this theme.booleanReturnstrueif this theme is dark.booleanChecks whether this theme is applied in the inverse mode.booleanReturns whether to show the dividers for this theme.setBackgroundColor(int backgroundColor) Set the background color used by this theme.setBackgroundColor(int backgroundColor, boolean generateTint) Set the background color used by this theme.setTintBackgroundColor(int tintBackgroundColor) Set the background tint color used by this theme.
-
Method Details
-
getBackgroundColor
Returns the background color used by this theme.- Parameters:
resolve-trueto resolve the auto color.inverse-trueto resolve the inverse color.- Returns:
- The background color used by this theme.
-
getBackgroundColor
Returns the background color used by this theme.- Parameters:
resolve-trueto resolve the auto color.- Returns:
- The background color used by this theme.
-
getBackgroundColor
Returns the background color used by this theme.- Returns:
- The background color used by this theme.
-
setBackgroundColor
Set the background color used by this theme.- Parameters:
backgroundColor- The background color to be set.generateTint-trueto automatically generate the tint color also.- Returns:
- The
BackgroundThemeobject to allow for chaining of calls to set methods. - See Also:
-
setBackgroundColor
Set the background color used by this theme.It will automatically generate the tint color also.
- Parameters:
backgroundColor- The background color to be set.- Returns:
- The
BackgroundThemeobject to allow for chaining of calls to set methods. - See Also:
-
getTintBackgroundColor
Returns the background tint color used by this theme.- Parameters:
resolve-trueto resolve the auto color.inverse-trueto resolve the inverse color.- Returns:
- The background tint color used by this theme.
-
getTintBackgroundColor
Returns the background tint color used by this theme.- Parameters:
resolve-trueto resolve the auto color.- Returns:
- The background tint color used by this theme.
-
getTintBackgroundColor
Returns the background tint color used by this theme.- Returns:
- The background tint color used by this theme.
-
setTintBackgroundColor
Set the background tint color used by this theme.- Parameters:
tintBackgroundColor- The background tint color to be set.- Returns:
- The
BackgroundThemeobject to allow for chaining of calls to set methods.
-
isDarkTheme
boolean isDarkTheme()Returnstrueif this theme is dark.- Returns:
trueif this theme is dark.
-
isInverseTheme
boolean isInverseTheme()Checks whether this theme is applied in the inverse mode.- Returns:
trueif this theme is applied in the inverse mode.
-
isShowDividers
boolean isShowDividers()Returns whether to show the dividers for this theme.- Returns:
trueto show the dividers for this theme.
-