Class DynamicRemoteTheme
java.lang.Object
com.pranavpandey.android.dynamic.theme.AppTheme<DynamicAppTheme>
com.pranavpandey.android.dynamic.support.model.DynamicAppTheme
com.pranavpandey.android.dynamic.support.model.DynamicWidgetTheme
com.pranavpandey.android.dynamic.support.model.DynamicRemoteTheme
- 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>
,WidgetTheme<DynamicWidgetTheme,
DynamicAppTheme>
A remote theme to resolve system colors according to the API level.
-
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 int
Constant for the default system color.static final int
Constant for the default system color at night.Fields inherited from class com.pranavpandey.android.dynamic.support.model.DynamicWidgetTheme
CREATOR
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorDescriptionConstructor to initialize an object of this class.DynamicRemoteTheme
(AppTheme<?> theme) Constructor to initialize an object of this class.DynamicRemoteTheme
(String theme) Constructor to initialize an object of this class from the theme string. -
Method Summary
Modifier and TypeMethodDescriptionint
getBackgroundColor
(boolean resolve) int
getBackgroundColor
(boolean resolve, boolean inverse) int
getTintBackgroundColor
(boolean resolve) int
getTintBackgroundColor
(boolean resolve, boolean inverse) int
getType
(boolean resolve) boolean
toJsonString
(boolean resolve, boolean inverse) Methods inherited from class com.pranavpandey.android.dynamic.support.model.DynamicWidgetTheme
getAccentColor, getAccentColorDark, getCornerRadius, getCornerSize, getErrorColor, getHeader, getHeaderString, getPrimaryColor, getPrimaryColorDark, getStrokeColor, getSurfaceColor, getTextPrimaryColor, getTextPrimaryColorInverse, getTextSecondaryColor, getTextSecondaryColorInverse, getThemeFallback, getTintAccentColor, getTintAccentColorDark, getTintErrorColor, getTintPrimaryColor, getTintPrimaryColorDark, getTintSurfaceColor, getWidgetId, setHeader, setHeaderString, setWidgetId, toString, writeToParcel
Methods inherited from class com.pranavpandey.android.dynamic.support.model.DynamicAppTheme
autoGenerateColors, autoGenerateColors, describeContents, getAccentColor, getAccentColor, getAccentColorDark, getAccentColorDark, getAlpha, getBackgroundAware, getBackgroundAware, getBackgroundColor, getContrast, getContrast, getContrastRatio, getCornerRadius, getCornerSize, getDynamicColors, getElevation, getElevation, getErrorColor, getErrorColor, getFontScale, getFontScale, getFontScaleRelative, getHighlightColor, getHighlightColor, getOpacity, getOpacity, getPrimaryColor, getPrimaryColor, getPrimaryColorDark, getPrimaryColorDark, getStyle, getSurfaceColor, getSurfaceColor, getTextPrimaryColor, getTextPrimaryColor, getTextPrimaryColorInverse, getTextPrimaryColorInverse, getTextSecondaryColor, getTextSecondaryColor, getTextSecondaryColorInverse, getTextSecondaryColorInverse, getThemeRes, getTintAccentColor, getTintAccentColor, getTintAccentColorDark, getTintAccentColorDark, getTintBackgroundColor, getTintErrorColor, getTintErrorColor, getTintPrimaryColor, getTintPrimaryColor, getTintPrimaryColorDark, getTintPrimaryColorDark, getTintSurfaceColor, getTintSurfaceColor, getType, isBackgroundAware, isBackgroundSurface, isDarkTheme, isElevation, isFontScale, isHost, isShowDividers, isTranslucent, setAccentColor, setAccentColor, setAccentColorDark, setAccentColorDark, setBackgroundAware, setBackgroundColor, setBackgroundColor, setContrast, setCornerRadius, setCornerSize, setElevation, setErrorColor, setErrorColor, setFontScale, setHost, setOpacity, setPrimaryColor, setPrimaryColor, setPrimaryColorDark, setPrimaryColorDark, setStyle, setSurfaceColor, setSurfaceColor, setTextPrimaryColor, setTextPrimaryColor, setTextPrimaryColorInverse, setTextSecondaryColor, setTextSecondaryColor, setTextSecondaryColorInverse, setThemeRes, setTintAccentColor, setTintAccentColorDark, setTintBackgroundColor, setTintErrorColor, setTintPrimaryColor, setTintPrimaryColorDark, setTintSurfaceColor, setType
Methods inherited from class com.pranavpandey.android.dynamic.theme.AppTheme
getCodeBackgroundColor, getCodeContrastRatio, getCodeData, getCodeDataColor, getCodeFinderColor, getCodeOverlayColor, getCodeStrokeColor, getCodeStyle, getThemeData, isDynamicColor, isStroke, toJsonString
-
Field Details
-
SYSTEM_COLOR
public static final int SYSTEM_COLORConstant for the default system color.- See Also:
-
SYSTEM_COLOR_NIGHT
public static final int SYSTEM_COLOR_NIGHTConstant for the default system color at night.- See Also:
-
-
Constructor Details
-
DynamicRemoteTheme
public DynamicRemoteTheme()Constructor to initialize an object of this class. -
DynamicRemoteTheme
Constructor to initialize an object of this class from the theme string.- Parameters:
theme
- The theme string to initialize the instance.- Throws:
JsonSyntaxException
-
-
Method Details
-
getBackgroundColor
- Specified by:
getBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
- Overrides:
getBackgroundColor
in classDynamicWidgetTheme
-
getBackgroundColor
- Specified by:
getBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
- Overrides:
getBackgroundColor
in classDynamicAppTheme
-
getTintBackgroundColor
- Specified by:
getTintBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
- Overrides:
getTintBackgroundColor
in classDynamicWidgetTheme
-
getTintBackgroundColor
- Specified by:
getTintBackgroundColor
in interfaceBackgroundTheme<DynamicAppTheme>
- Overrides:
getTintBackgroundColor
in classDynamicAppTheme
-
getType
public int getType(boolean resolve) - Specified by:
getType
in interfaceTypeTheme<DynamicAppTheme>
- Overrides:
getType
in classDynamicWidgetTheme
-
isInverseTheme
public boolean isInverseTheme()- Specified by:
isInverseTheme
in interfaceBackgroundTheme<DynamicAppTheme>
- Overrides:
isInverseTheme
in classDynamicAppTheme
-
toJsonString
- Specified by:
toJsonString
in interfaceStringTheme<DynamicAppTheme>
- Overrides:
toJsonString
in classDynamicWidgetTheme
-
toDynamicString
- Specified by:
toDynamicString
in interfaceStringTheme<DynamicAppTheme>
- Overrides:
toDynamicString
in classDynamicWidgetTheme
-