Interface DynamicStateWidget
- All Superinterfaces:
BaseWidget,DynamicWidget
- All Known Subinterfaces:
DynamicStateSelectedWidget
- All Known Implementing Classes:
DynamicCheckBox,DynamicCheckedTextView,DynamicMaterialSwitch,DynamicNavigationView,DynamicRadioButton,DynamicSwitchCompat
Interface to create dynamic widgets with a normal state according to the
DynamicTheme.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of normal state color applied to this widget.intgetStateNormalColor(boolean resolve) Returns the value of normal state color applied to this widget.intReturns the normal state color type applied to this widget.voidsetStateNormalColor(int stateNormalColor) Set the value of normal state color for this widget.voidsetStateNormalColorType(int stateNormalColorType) Set the normal state color type to this widget.Methods inherited from interface com.pranavpandey.android.dynamic.support.widget.base.BaseWidget
initialize, loadFromAttributesMethods inherited from interface com.pranavpandey.android.dynamic.support.widget.base.DynamicWidget
getBackgroundAware, getColor, getColor, getColorType, getContrast, getContrast, getContrastRatio, getContrastWithColor, getContrastWithColorType, isBackgroundAware, setBackgroundAware, setColor, setColor, setColorType, setContrast, setContrastWithColor, setContrastWithColorType, setEnabled
-
Method Details
-
getStateNormalColorType
int getStateNormalColorType()Returns the normal state color type applied to this widget.- Returns:
- The normal state color type applied to this widget.
- See Also:
-
setStateNormalColorType
void setStateNormalColorType(int stateNormalColorType) Set the normal state color type to this widget.- Parameters:
stateNormalColorType- Normal state color type for this widget.- See Also:
-
getStateNormalColor
Returns the value of normal state color applied to this widget.- Parameters:
resolve-trueto resolve the applied normal state color.- Returns:
- The value of normal state color applied to this widget.
-
getStateNormalColor
Returns the value of normal state color applied to this widget.- Returns:
- The value of normal state color applied to this widget.
-
setStateNormalColor
Set the value of normal state color for this widget.- Parameters:
stateNormalColor- Normal state color for this widget.
-