Interface DynamicColor<T extends DynamicColor<T>>
- Type Parameters:
T
- The type of the dynamic theme.
- All Superinterfaces:
AccentTheme<T>
,BackgroundTheme<T>
,BaseTheme<T>
,ElevationTheme<T>
,ErrorTheme<T>
,PrimaryTheme<T>
,SurfaceTheme<T>
- All Known Implementing Classes:
AppTheme
,AppWidgetTheme
public interface DynamicColor<T extends DynamicColor<T>>
extends BaseTheme<T>, BackgroundTheme<T>, SurfaceTheme<T>, PrimaryTheme<T>, AccentTheme<T>, ErrorTheme<T>
A
BaseTheme
to implement the dynamic color theme.-
Method Summary
Modifier and TypeMethodDescriptionReturn the dynamic colors used by the app.boolean
Returns whether to the dynamic colors are used by this theme.Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.AccentTheme
getAccentColor, getAccentColor, getAccentColor, getAccentColorDark, getAccentColorDark, getAccentColorDark, getTintAccentColor, getTintAccentColor, getTintAccentColor, getTintAccentColorDark, getTintAccentColorDark, getTintAccentColorDark, setAccentColor, setAccentColor, setAccentColorDark, setAccentColorDark, setTintAccentColor, setTintAccentColorDark
Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.BackgroundTheme
getBackgroundColor, getBackgroundColor, getBackgroundColor, getTintBackgroundColor, getTintBackgroundColor, getTintBackgroundColor, isDarkTheme, isInverseTheme, isShowDividers, setBackgroundColor, setBackgroundColor, setTintBackgroundColor
Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.BaseTheme
isHost, setHost
Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.ElevationTheme
getElevation, getElevation, isElevation, setElevation
Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.ErrorTheme
getErrorColor, getErrorColor, getErrorColor, getTintErrorColor, getTintErrorColor, getTintErrorColor, setErrorColor, setErrorColor, setTintErrorColor
Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.PrimaryTheme
getPrimaryColor, getPrimaryColor, getPrimaryColor, getPrimaryColorDark, getPrimaryColorDark, getPrimaryColorDark, getTintPrimaryColor, getTintPrimaryColor, getTintPrimaryColor, getTintPrimaryColorDark, getTintPrimaryColorDark, getTintPrimaryColorDark, setPrimaryColor, setPrimaryColor, setPrimaryColorDark, setPrimaryColorDark, setTintPrimaryColor, setTintPrimaryColorDark
Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.SurfaceTheme
getSurfaceColor, getSurfaceColor, getSurfaceColor, getTintSurfaceColor, getTintSurfaceColor, getTintSurfaceColor, isBackgroundSurface, setSurfaceColor, setSurfaceColor, setTintSurfaceColor
-
Method Details
-
isDynamicColor
boolean isDynamicColor()Returns whether to the dynamic colors are used by this theme.- Returns:
true
if the dynamic colors are used by this theme.
-
getDynamicColors
Return the dynamic colors used by the app.- Returns:
- The dynamic colors used by the app.
-