Class DynamicAppTheme
java.lang.Object
com.pranavpandey.android.dynamic.theme.AppTheme<DynamicAppTheme>
com.pranavpandey.android.dynamic.support.model.DynamicAppTheme
- All Implemented Interfaces:
Parcelable
,AccentTheme<DynamicAppTheme>
,AutoTheme<DynamicAppTheme>
,BackgroundAware<DynamicAppTheme>
,BackgroundTheme<DynamicAppTheme>
,BaseTheme<DynamicAppTheme>
,CodeTheme<DynamicAppTheme>
,CornerTheme<DynamicAppTheme>
,DynamicColor<DynamicAppTheme>
,ElevationTheme<DynamicAppTheme>
,ErrorTheme<DynamicAppTheme>
,FallbackTheme<DynamicAppTheme>
,PrimaryTheme<DynamicAppTheme>
,ResourceTheme<DynamicAppTheme>
,StringTheme<DynamicAppTheme>
,StrokeTheme<DynamicAppTheme>
,StyleTheme<DynamicAppTheme>
,SurfaceTheme<DynamicAppTheme>
,TextTheme<DynamicAppTheme>
,TranslucentTheme<DynamicAppTheme>
,TypeTheme<DynamicAppTheme>
- Direct Known Subclasses:
DynamicWidgetTheme
An app theme to store various colors and attributes which can be modified at runtime.
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Parcelable.Creator<DynamicAppTheme>
Parcelable creator to create from parcel.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorDescriptionConstructor to initialize an object of this class.DynamicAppTheme
(int primaryColor, int primaryColorDark, int accentColor, int fontScale, int cornerRadius, int backgroundAware) Constructor to initialize an object of this class.DynamicAppTheme
(int primaryColor, int primaryColorDark, int accentColor, int errorColor, int fontScale, int cornerRadius, int backgroundAware) Constructor to initialize an object of this class.DynamicAppTheme
(int backgroundColor, int primaryColor, int accentColor, int tintBackgroundColor, int tintPrimaryColor, int tintAccentColor, int textPrimaryColor, int textSecondaryColor, int textPrimaryColorInverse, int textSecondaryColorInverse, int backgroundAware) Constructor to initialize an object of this class.DynamicAppTheme
(int backgroundColor, int surfaceColor, int primaryColor, int primaryColorDark, int accentColor, int accentColorDark, int errorColor, int tintBackgroundColor, int tintSurfaceColor, int tintPrimaryColor, int tintPrimaryColorDark, int tintAccentColor, int tintAccentColorDark, int tintErrorColor, int textPrimaryColor, int textSecondaryColor, int textPrimaryColorInverse, int textSecondaryColorInverse, int fontScale, int cornerRadius, int backgroundAware, int contrast, int opacity, int elevation, int style, int type) Constructor to initialize an object of this class.Read an object of this class from the parcel.DynamicAppTheme
(AppTheme<?> theme) Constructor to initialize an object of this class.DynamicAppTheme
(String theme) Constructor to initialize an object of this class from the theme string. -
Method Summary
Modifier and TypeMethodDescriptionautoGenerateColors
(boolean tint, boolean inverse) int
int
int
getAccentColor
(boolean resolve) int
getAccentColor
(boolean resolve, boolean inverse) int
int
getAccentColorDark
(boolean resolve) int
getAccentColorDark
(boolean resolve, boolean inverse) float
getAlpha()
int
int
getBackgroundAware
(boolean resolve) int
int
getBackgroundColor
(boolean resolve) int
getBackgroundColor
(boolean resolve, boolean inverse) int
int
getContrast
(boolean resolve) float
int
int
getCornerRadius
(boolean resolve) int
int
getCornerSize
(boolean resolve) int
int
getElevation
(boolean resolve) int
int
getErrorColor
(boolean resolve) int
getErrorColor
(boolean resolve, boolean inverse) int
int
getFontScale
(boolean resolve) float
int
int
getHighlightColor
(int contrastWithColor) int
int
getOpacity
(boolean resolve) int
int
getPrimaryColor
(boolean resolve) int
getPrimaryColor
(boolean resolve, boolean inverse) int
int
getPrimaryColorDark
(boolean resolve) int
getPrimaryColorDark
(boolean resolve, boolean inverse) int
int
getStyle()
int
int
getSurfaceColor
(boolean resolve) int
getSurfaceColor
(boolean resolve, boolean inverse) int
int
getTextPrimaryColor
(boolean resolve) int
getTextPrimaryColor
(boolean resolve, boolean inverse) int
int
getTextPrimaryColorInverse
(boolean resolve) int
getTextPrimaryColorInverse
(boolean resolve, boolean inverse) int
int
getTextSecondaryColor
(boolean resolve) int
getTextSecondaryColor
(boolean resolve, boolean inverse) int
int
getTextSecondaryColorInverse
(boolean resolve) int
getTextSecondaryColorInverse
(boolean resolve, boolean inverse) getThemeFallback
(boolean resolve) int
int
int
getTintAccentColor
(boolean resolve) int
getTintAccentColor
(boolean resolve, boolean inverse) int
int
getTintAccentColorDark
(boolean resolve) int
getTintAccentColorDark
(boolean resolve, boolean inverse) int
int
getTintBackgroundColor
(boolean resolve) int
getTintBackgroundColor
(boolean resolve, boolean inverse) int
int
getTintErrorColor
(boolean resolve) int
getTintErrorColor
(boolean resolve, boolean inverse) int
int
getTintPrimaryColor
(boolean resolve) int
getTintPrimaryColor
(boolean resolve, boolean inverse) int
int
getTintPrimaryColorDark
(boolean resolve) int
getTintPrimaryColorDark
(boolean resolve, boolean inverse) int
int
getTintSurfaceColor
(boolean resolve) int
getTintSurfaceColor
(boolean resolve, boolean inverse) int
getType()
int
getType
(boolean resolve) boolean
boolean
boolean
boolean
boolean
boolean
isHost()
boolean
boolean
boolean
setAccentColor
(int accentColor) setAccentColor
(int accentColor, boolean generateTint) setAccentColorDark
(int accentColorDark) setAccentColorDark
(int accentColorDark, boolean generateTint) setBackgroundAware
(int backgroundAware) setBackgroundColor
(int backgroundColor) setBackgroundColor
(int backgroundColor, boolean generateTint) setContrast
(int contrast) setCornerRadius
(int cornerRadius) setCornerSize
(float cornerSize) setElevation
(int elevation) setErrorColor
(int errorColor) setErrorColor
(int errorColor, boolean generateTint) setFontScale
(int fontScale) setHost
(boolean host) setOpacity
(int opacity) setPrimaryColor
(int primaryColor) setPrimaryColor
(int primaryColor, boolean generateTint) setPrimaryColorDark
(int primaryColorDark) setPrimaryColorDark
(int primaryColorDark, boolean generateTint) setStyle
(int style) setSurfaceColor
(int surfaceColor) setSurfaceColor
(int surfaceColor, boolean generateTint) setTextPrimaryColor
(int textPrimaryColor) setTextPrimaryColor
(int textPrimaryColor, boolean generateInverse) setTextPrimaryColorInverse
(int textPrimaryColorInverse) setTextSecondaryColor
(int textSecondaryColor) setTextSecondaryColor
(int textSecondaryColor, boolean generateInverse) setTextSecondaryColorInverse
(int textSecondaryColorInverse) setThemeRes
(int themeRes) setTintAccentColor
(int tintAccentColor) setTintAccentColorDark
(int tintAccentColorDark) setTintBackgroundColor
(int tintBackgroundColor) setTintErrorColor
(int tintErrorColor) setTintPrimaryColor
(int tintPrimaryColor) setTintPrimaryColorDark
(int tintPrimaryColorDark) setTintSurfaceColor
(int tintSurfaceColor) setType
(int type) toJsonString
(boolean resolve, boolean inverse) toString()
void
writeToParcel
(Parcel dest, int flags) Methods inherited from class com.pranavpandey.android.dynamic.theme.AppTheme
getCodeBackgroundColor, getCodeContrastRatio, getCodeData, getCodeDataColor, getCodeFinderColor, getCodeOverlayColor, getCodeStrokeColor, getCodeStyle, getThemeData, isDynamicColor, isStroke, toJsonString
-
Field Details
-
CREATOR
Parcelable creator to create from parcel.
-
-
Constructor Details
-
DynamicAppTheme
public DynamicAppTheme()Constructor to initialize an object of this class. -
DynamicAppTheme
Constructor to initialize an object of this class from the theme string.- Parameters:
theme
- The theme string to initialize the instance.- Throws:
JsonSyntaxException
-
DynamicAppTheme
public DynamicAppTheme(@ColorInt int primaryColor, @ColorInt int primaryColorDark, @ColorInt int accentColor, int fontScale, int cornerRadius, int backgroundAware) Constructor to initialize an object of this class.- Parameters:
primaryColor
- The primary color for this theme.primaryColorDark
- The dark primary color for this theme.accentColor
- The accent color for this theme.fontScale
- The text scaling factor for this theme.cornerRadius
- The corner size for this theme.backgroundAware
- The background aware functionality for this theme.
-
DynamicAppTheme
public DynamicAppTheme(@ColorInt int primaryColor, @ColorInt int primaryColorDark, @ColorInt int accentColor, @ColorInt int errorColor, int fontScale, int cornerRadius, int backgroundAware) Constructor to initialize an object of this class.- Parameters:
primaryColor
- The primary color for this theme.primaryColorDark
- The dark primary color for this theme.accentColor
- The accent color for this theme.errorColor
- The error color for this theme.fontScale
- The text scaling factor for this theme.cornerRadius
- The corner size for this theme.backgroundAware
- The background aware functionality for this theme.
-
DynamicAppTheme
public DynamicAppTheme(@ColorInt int backgroundColor, @ColorInt int primaryColor, @ColorInt int accentColor, @ColorInt int tintBackgroundColor, @ColorInt int tintPrimaryColor, @ColorInt int tintAccentColor, @ColorInt int textPrimaryColor, @ColorInt int textSecondaryColor, @ColorInt int textPrimaryColorInverse, @ColorInt int textSecondaryColorInverse, int backgroundAware) Constructor to initialize an object of this class.- Parameters:
backgroundColor
- The background color for this theme.primaryColor
- The primary color for this theme.accentColor
- The accent color for this theme.tintBackgroundColor
- Tint color according to the background color.tintPrimaryColor
- Tint color according to the primary color.tintAccentColor
- Tint color according to the accent color.textPrimaryColor
- The primary text color for this theme.textSecondaryColor
- The secondary text color for this theme.textPrimaryColorInverse
- Inverse color for the primary text color.textSecondaryColorInverse
- Inverse color for the secondary text color.backgroundAware
- The background aware functionality for this theme.
-
DynamicAppTheme
public DynamicAppTheme(@ColorInt int backgroundColor, @ColorInt int surfaceColor, @ColorInt int primaryColor, @ColorInt int primaryColorDark, @ColorInt int accentColor, @ColorInt int accentColorDark, @ColorInt int errorColor, @ColorInt int tintBackgroundColor, @ColorInt int tintSurfaceColor, @ColorInt int tintPrimaryColor, @ColorInt int tintPrimaryColorDark, @ColorInt int tintAccentColor, @ColorInt int tintAccentColorDark, @ColorInt int tintErrorColor, @ColorInt int textPrimaryColor, @ColorInt int textSecondaryColor, @ColorInt int textPrimaryColorInverse, @ColorInt int textSecondaryColorInverse, int fontScale, int cornerRadius, int backgroundAware, int contrast, int opacity, int elevation, int style, int type) Constructor to initialize an object of this class.- Parameters:
backgroundColor
- The background color for this theme.surfaceColor
- The surface color for this theme.primaryColor
- The primary color for this theme.primaryColorDark
- The dark primary color for this theme.accentColor
- The accent color for this theme.accentColorDark
- The dark accent color for this theme.errorColor
- The error color for this theme.tintBackgroundColor
- Tint color according to the background color.tintSurfaceColor
- Tint color according to the surface color.tintPrimaryColor
- Tint color according to the primary color.tintPrimaryColorDark
- Tint color according to the dark primary color.tintAccentColor
- Tint color according to the accent color.tintAccentColorDark
- Tint color according to the dark accent color.tintErrorColor
- Tint color according to the error color.textPrimaryColor
- The primary text color for this theme.textSecondaryColor
- The secondary text color for this theme.textPrimaryColorInverse
- Inverse color for the primary text color.textSecondaryColorInverse
- Inverse color for the secondary text color.fontScale
- The text scaling factor for this theme.cornerRadius
- The corner size for this theme.backgroundAware
- The background aware functionality for this theme.contrast
- The contrast value for this theme.opacity
- The opacity value for this theme.elevation
- The elevation functionality for this theme.style
- The style value for this theme.type
- The type value for this theme.
-
DynamicAppTheme
Read an object of this class from the parcel.- Parameters:
in
- The parcel to read the values.
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-
getThemeFallback
- Specified by:
getThemeFallback
in interfaceFallbackTheme<DynamicAppTheme>
-
isHost
public boolean isHost()- Specified by:
isHost
in interfaceBaseTheme<DynamicAppTheme>
-
setHost
- Specified by:
setHost
in interfaceBaseTheme<DynamicAppTheme>
-
getThemeRes
- Specified by:
getThemeRes
in interfaceResourceTheme<DynamicAppTheme>
-
setThemeRes
- Specified by:
setThemeRes
in interfaceResourceTheme<DynamicAppTheme>
-
getBackgroundColor
- Specified by:
getBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
-
getBackgroundColor
- Specified by:
getBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
-
getBackgroundColor
- Specified by:
getBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
-
setBackgroundColor
@NonNull public DynamicAppTheme setBackgroundColor(@ColorInt int backgroundColor, boolean generateTint) - Specified by:
setBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
-
setBackgroundColor
- Specified by:
setBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
-
getTintBackgroundColor
- Specified by:
getTintBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
-
getTintBackgroundColor
- Specified by:
getTintBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
-
getTintBackgroundColor
- Specified by:
getTintBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
-
setTintBackgroundColor
- Specified by:
setTintBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
-
isDarkTheme
public boolean isDarkTheme()- Specified by:
isDarkTheme
in interfaceBackgroundTheme<DynamicAppTheme>
-
isInverseTheme
public boolean isInverseTheme()- Specified by:
isInverseTheme
in interfaceBackgroundTheme<DynamicAppTheme>
-
isShowDividers
public boolean isShowDividers()- Specified by:
isShowDividers
in interfaceBackgroundTheme<DynamicAppTheme>
-
getElevation
public int getElevation(boolean resolve) - Specified by:
getElevation
in interfaceElevationTheme<DynamicAppTheme>
-
getElevation
public int getElevation()- Specified by:
getElevation
in interfaceElevationTheme<DynamicAppTheme>
-
isElevation
public boolean isElevation()- Specified by:
isElevation
in interfaceElevationTheme<DynamicAppTheme>
-
setElevation
- Specified by:
setElevation
in interfaceElevationTheme<DynamicAppTheme>
-
getSurfaceColor
- Specified by:
getSurfaceColor
in interfaceSurfaceTheme<DynamicAppTheme>
-
getSurfaceColor
- Specified by:
getSurfaceColor
in interfaceSurfaceTheme<DynamicAppTheme>
-
getSurfaceColor
- Specified by:
getSurfaceColor
in interfaceSurfaceTheme<DynamicAppTheme>
-
setSurfaceColor
- Specified by:
setSurfaceColor
in interfaceSurfaceTheme<DynamicAppTheme>
-
setSurfaceColor
- Specified by:
setSurfaceColor
in interfaceSurfaceTheme<DynamicAppTheme>
-
getTintSurfaceColor
- Specified by:
getTintSurfaceColor
in interfaceSurfaceTheme<DynamicAppTheme>
-
getTintSurfaceColor
- Specified by:
getTintSurfaceColor
in interfaceSurfaceTheme<DynamicAppTheme>
-
getTintSurfaceColor
- Specified by:
getTintSurfaceColor
in interfaceSurfaceTheme<DynamicAppTheme>
-
setTintSurfaceColor
- Specified by:
setTintSurfaceColor
in interfaceSurfaceTheme<DynamicAppTheme>
-
isBackgroundSurface
public boolean isBackgroundSurface()- Specified by:
isBackgroundSurface
in interfaceSurfaceTheme<DynamicAppTheme>
-
getPrimaryColor
- Specified by:
getPrimaryColor
in interfacePrimaryTheme<DynamicAppTheme>
-
getPrimaryColor
- Specified by:
getPrimaryColor
in interfacePrimaryTheme<DynamicAppTheme>
-
getPrimaryColor
- Specified by:
getPrimaryColor
in interfacePrimaryTheme<DynamicAppTheme>
-
setPrimaryColor
- Specified by:
setPrimaryColor
in interfacePrimaryTheme<DynamicAppTheme>
-
setPrimaryColor
- Specified by:
setPrimaryColor
in interfacePrimaryTheme<DynamicAppTheme>
-
getPrimaryColorDark
- Specified by:
getPrimaryColorDark
in interfacePrimaryTheme<DynamicAppTheme>
-
getPrimaryColorDark
- Specified by:
getPrimaryColorDark
in interfacePrimaryTheme<DynamicAppTheme>
-
getPrimaryColorDark
- Specified by:
getPrimaryColorDark
in interfacePrimaryTheme<DynamicAppTheme>
-
setPrimaryColorDark
@NonNull public DynamicAppTheme setPrimaryColorDark(@ColorInt int primaryColorDark, boolean generateTint) - Specified by:
setPrimaryColorDark
in interfacePrimaryTheme<DynamicAppTheme>
-
setPrimaryColorDark
- Specified by:
setPrimaryColorDark
in interfacePrimaryTheme<DynamicAppTheme>
-
getTintPrimaryColor
- Specified by:
getTintPrimaryColor
in interfacePrimaryTheme<DynamicAppTheme>
-
getTintPrimaryColor
- Specified by:
getTintPrimaryColor
in interfacePrimaryTheme<DynamicAppTheme>
-
getTintPrimaryColor
- Specified by:
getTintPrimaryColor
in interfacePrimaryTheme<DynamicAppTheme>
-
setTintPrimaryColor
- Specified by:
setTintPrimaryColor
in interfacePrimaryTheme<DynamicAppTheme>
-
getTintPrimaryColorDark
- Specified by:
getTintPrimaryColorDark
in interfacePrimaryTheme<DynamicAppTheme>
-
getTintPrimaryColorDark
- Specified by:
getTintPrimaryColorDark
in interfacePrimaryTheme<DynamicAppTheme>
-
getTintPrimaryColorDark
- Specified by:
getTintPrimaryColorDark
in interfacePrimaryTheme<DynamicAppTheme>
-
setTintPrimaryColorDark
- Specified by:
setTintPrimaryColorDark
in interfacePrimaryTheme<DynamicAppTheme>
-
getAccentColor
- Specified by:
getAccentColor
in interfaceAccentTheme<DynamicAppTheme>
-
getAccentColor
- Specified by:
getAccentColor
in interfaceAccentTheme<DynamicAppTheme>
-
getAccentColor
- Specified by:
getAccentColor
in interfaceAccentTheme<DynamicAppTheme>
-
setAccentColor
- Specified by:
setAccentColor
in interfaceAccentTheme<DynamicAppTheme>
-
setAccentColor
- Specified by:
setAccentColor
in interfaceAccentTheme<DynamicAppTheme>
-
getAccentColorDark
- Specified by:
getAccentColorDark
in interfaceAccentTheme<DynamicAppTheme>
-
getAccentColorDark
- Specified by:
getAccentColorDark
in interfaceAccentTheme<DynamicAppTheme>
-
getAccentColorDark
- Specified by:
getAccentColorDark
in interfaceAccentTheme<DynamicAppTheme>
-
setAccentColorDark
@NonNull public DynamicAppTheme setAccentColorDark(@ColorInt int accentColorDark, boolean generateTint) - Specified by:
setAccentColorDark
in interfaceAccentTheme<DynamicAppTheme>
-
setAccentColorDark
- Specified by:
setAccentColorDark
in interfaceAccentTheme<DynamicAppTheme>
-
getTintAccentColor
- Specified by:
getTintAccentColor
in interfaceAccentTheme<DynamicAppTheme>
-
getTintAccentColor
- Specified by:
getTintAccentColor
in interfaceAccentTheme<DynamicAppTheme>
-
getTintAccentColor
- Specified by:
getTintAccentColor
in interfaceAccentTheme<DynamicAppTheme>
-
setTintAccentColor
- Specified by:
setTintAccentColor
in interfaceAccentTheme<DynamicAppTheme>
-
getTintAccentColorDark
- Specified by:
getTintAccentColorDark
in interfaceAccentTheme<DynamicAppTheme>
-
getTintAccentColorDark
- Specified by:
getTintAccentColorDark
in interfaceAccentTheme<DynamicAppTheme>
-
getTintAccentColorDark
- Specified by:
getTintAccentColorDark
in interfaceAccentTheme<DynamicAppTheme>
-
setTintAccentColorDark
- Specified by:
setTintAccentColorDark
in interfaceAccentTheme<DynamicAppTheme>
-
getErrorColor
public int getErrorColor(boolean resolve, boolean inverse) - Specified by:
getErrorColor
in interfaceErrorTheme<DynamicAppTheme>
-
getErrorColor
- Specified by:
getErrorColor
in interfaceErrorTheme<DynamicAppTheme>
-
getErrorColor
public int getErrorColor()- Specified by:
getErrorColor
in interfaceErrorTheme<DynamicAppTheme>
-
setErrorColor
- Specified by:
setErrorColor
in interfaceErrorTheme<DynamicAppTheme>
-
setErrorColor
- Specified by:
setErrorColor
in interfaceErrorTheme<DynamicAppTheme>
-
getTintErrorColor
- Specified by:
getTintErrorColor
in interfaceErrorTheme<DynamicAppTheme>
-
getTintErrorColor
- Specified by:
getTintErrorColor
in interfaceErrorTheme<DynamicAppTheme>
-
getTintErrorColor
- Specified by:
getTintErrorColor
in interfaceErrorTheme<DynamicAppTheme>
-
setTintErrorColor
- Specified by:
setTintErrorColor
in interfaceErrorTheme<DynamicAppTheme>
-
getTextPrimaryColor
- Specified by:
getTextPrimaryColor
in interfaceTextTheme<DynamicAppTheme>
-
getTextPrimaryColor
- Specified by:
getTextPrimaryColor
in interfaceTextTheme<DynamicAppTheme>
-
getTextPrimaryColor
- Specified by:
getTextPrimaryColor
in interfaceTextTheme<DynamicAppTheme>
-
setTextPrimaryColor
@NonNull public DynamicAppTheme setTextPrimaryColor(@ColorInt int textPrimaryColor, boolean generateInverse) - Specified by:
setTextPrimaryColor
in interfaceTextTheme<DynamicAppTheme>
-
setTextPrimaryColor
- Specified by:
setTextPrimaryColor
in interfaceTextTheme<DynamicAppTheme>
-
getTextSecondaryColor
- Specified by:
getTextSecondaryColor
in interfaceTextTheme<DynamicAppTheme>
-
getTextSecondaryColor
- Specified by:
getTextSecondaryColor
in interfaceTextTheme<DynamicAppTheme>
-
getTextSecondaryColor
- Specified by:
getTextSecondaryColor
in interfaceTextTheme<DynamicAppTheme>
-
setTextSecondaryColor
@NonNull public DynamicAppTheme setTextSecondaryColor(@ColorInt int textSecondaryColor, boolean generateInverse) - Specified by:
setTextSecondaryColor
in interfaceTextTheme<DynamicAppTheme>
-
setTextSecondaryColor
- Specified by:
setTextSecondaryColor
in interfaceTextTheme<DynamicAppTheme>
-
getTextPrimaryColorInverse
- Specified by:
getTextPrimaryColorInverse
in interfaceTextTheme<DynamicAppTheme>
-
getTextPrimaryColorInverse
- Specified by:
getTextPrimaryColorInverse
in interfaceTextTheme<DynamicAppTheme>
-
getTextPrimaryColorInverse
- Specified by:
getTextPrimaryColorInverse
in interfaceTextTheme<DynamicAppTheme>
-
setTextPrimaryColorInverse
- Specified by:
setTextPrimaryColorInverse
in interfaceTextTheme<DynamicAppTheme>
-
getTextSecondaryColorInverse
- Specified by:
getTextSecondaryColorInverse
in interfaceTextTheme<DynamicAppTheme>
-
getTextSecondaryColorInverse
- Specified by:
getTextSecondaryColorInverse
in interfaceTextTheme<DynamicAppTheme>
-
getTextSecondaryColorInverse
- Specified by:
getTextSecondaryColorInverse
in interfaceTextTheme<DynamicAppTheme>
-
setTextSecondaryColorInverse
- Specified by:
setTextSecondaryColorInverse
in interfaceTextTheme<DynamicAppTheme>
-
getHighlightColor
- Specified by:
getHighlightColor
in interfaceTextTheme<DynamicAppTheme>
-
getHighlightColor
- Specified by:
getHighlightColor
in interfaceTextTheme<DynamicAppTheme>
-
autoGenerateColors
- Specified by:
autoGenerateColors
in interfaceAutoTheme<DynamicAppTheme>
-
autoGenerateColors
- Specified by:
autoGenerateColors
in interfaceAutoTheme<DynamicAppTheme>
-
getFontScale
public int getFontScale(boolean resolve) - Specified by:
getFontScale
in interfaceTextTheme<DynamicAppTheme>
-
getFontScale
public int getFontScale()- Specified by:
getFontScale
in interfaceTextTheme<DynamicAppTheme>
-
getFontScaleRelative
public float getFontScaleRelative()- Specified by:
getFontScaleRelative
in interfaceTextTheme<DynamicAppTheme>
-
setFontScale
- Specified by:
setFontScale
in interfaceTextTheme<DynamicAppTheme>
-
isFontScale
public boolean isFontScale()- Specified by:
isFontScale
in interfaceTextTheme<DynamicAppTheme>
-
getCornerRadius
public int getCornerRadius(boolean resolve) - Specified by:
getCornerRadius
in interfaceCornerTheme<DynamicAppTheme>
-
getCornerRadius
public int getCornerRadius()- Specified by:
getCornerRadius
in interfaceCornerTheme<DynamicAppTheme>
-
setCornerRadius
- Specified by:
setCornerRadius
in interfaceCornerTheme<DynamicAppTheme>
-
getCornerSize
public int getCornerSize(boolean resolve) - Specified by:
getCornerSize
in interfaceCornerTheme<DynamicAppTheme>
-
getCornerSize
public int getCornerSize()- Specified by:
getCornerSize
in interfaceCornerTheme<DynamicAppTheme>
-
setCornerSize
- Specified by:
setCornerSize
in interfaceCornerTheme<DynamicAppTheme>
-
getBackgroundAware
public int getBackgroundAware(boolean resolve) - Specified by:
getBackgroundAware
in interfaceBackgroundAware<DynamicAppTheme>
-
getBackgroundAware
public int getBackgroundAware()- Specified by:
getBackgroundAware
in interfaceBackgroundAware<DynamicAppTheme>
-
isBackgroundAware
public boolean isBackgroundAware()- Specified by:
isBackgroundAware
in interfaceBackgroundAware<DynamicAppTheme>
-
setBackgroundAware
- Specified by:
setBackgroundAware
in interfaceBackgroundAware<DynamicAppTheme>
-
getContrast
public int getContrast(boolean resolve) - Specified by:
getContrast
in interfaceBackgroundAware<DynamicAppTheme>
-
getContrast
public int getContrast()- Specified by:
getContrast
in interfaceBackgroundAware<DynamicAppTheme>
-
getContrastRatio
public float getContrastRatio()- Specified by:
getContrastRatio
in interfaceBackgroundAware<DynamicAppTheme>
-
setContrast
- Specified by:
setContrast
in interfaceBackgroundAware<DynamicAppTheme>
-
getStrokeColor
- Specified by:
getStrokeColor
in interfaceStrokeTheme<DynamicAppTheme>
-
getOpacity
public int getOpacity(boolean resolve) - Specified by:
getOpacity
in interfaceTranslucentTheme<DynamicAppTheme>
-
getOpacity
public int getOpacity()- Specified by:
getOpacity
in interfaceTranslucentTheme<DynamicAppTheme>
-
setOpacity
- Specified by:
setOpacity
in interfaceTranslucentTheme<DynamicAppTheme>
-
getAlpha
public float getAlpha()- Specified by:
getAlpha
in interfaceTranslucentTheme<DynamicAppTheme>
-
isTranslucent
public boolean isTranslucent()- Specified by:
isTranslucent
in interfaceTranslucentTheme<DynamicAppTheme>
-
getStyle
public int getStyle()- Specified by:
getStyle
in interfaceStyleTheme<DynamicAppTheme>
-
setStyle
- Specified by:
setStyle
in interfaceStyleTheme<DynamicAppTheme>
-
getType
public int getType(boolean resolve) - Specified by:
getType
in interfaceTypeTheme<DynamicAppTheme>
-
getType
public int getType()- Specified by:
getType
in interfaceTypeTheme<DynamicAppTheme>
-
setType
- Specified by:
setType
in interfaceTypeTheme<DynamicAppTheme>
-
getDynamicColors
- Specified by:
getDynamicColors
in interfaceDynamicColor<DynamicAppTheme>
-
toJsonString
- Specified by:
toJsonString
in interfaceStringTheme<DynamicAppTheme>
-
toDynamicString
- Specified by:
toDynamicString
in interfaceStringTheme<DynamicAppTheme>
-
toString
-