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
FieldsModifier and TypeFieldDescriptionstatic final intConstant for the default system color.static final intConstant for the default system color at night.Fields inherited from class com.pranavpandey.android.dynamic.support.model.DynamicWidgetTheme
CREATORFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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 TypeMethodDescriptionintgetBackgroundColor(boolean resolve) intgetBackgroundColor(boolean resolve, boolean inverse) intgetTintBackgroundColor(boolean resolve) intgetTintBackgroundColor(boolean resolve, boolean inverse) intgetType(boolean resolve) booleantoJsonString(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, writeToParcelMethods 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, setTypeMethods 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:
getBackgroundColorin interfaceBackgroundTheme<DynamicAppTheme>- Overrides:
getBackgroundColorin classDynamicWidgetTheme
-
getBackgroundColor
- Specified by:
getBackgroundColorin interfaceBackgroundTheme<DynamicAppTheme>- Overrides:
getBackgroundColorin classDynamicAppTheme
-
getTintBackgroundColor
- Specified by:
getTintBackgroundColorin interfaceBackgroundTheme<DynamicAppTheme>- Overrides:
getTintBackgroundColorin classDynamicWidgetTheme
-
getTintBackgroundColor
- Specified by:
getTintBackgroundColorin interfaceBackgroundTheme<DynamicAppTheme>- Overrides:
getTintBackgroundColorin classDynamicAppTheme
-
getType
public int getType(boolean resolve) - Specified by:
getTypein interfaceTypeTheme<DynamicAppTheme>- Overrides:
getTypein classDynamicWidgetTheme
-
isInverseTheme
public boolean isInverseTheme()- Specified by:
isInverseThemein interfaceBackgroundTheme<DynamicAppTheme>- Overrides:
isInverseThemein classDynamicAppTheme
-
toJsonString
- Specified by:
toJsonStringin interfaceStringTheme<DynamicAppTheme>- Overrides:
toJsonStringin classDynamicWidgetTheme
-
toDynamicString
- Specified by:
toDynamicStringin interfaceStringTheme<DynamicAppTheme>- Overrides:
toDynamicStringin classDynamicWidgetTheme
-