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 TypeMethodDescriptionint
Returns the value of normal state color applied to this widget.int
getStateNormalColor
(boolean resolve) Returns the value of normal state color applied to this widget.int
Returns the normal state color type applied to this widget.void
setStateNormalColor
(int stateNormalColor) Set the value of normal state color for this widget.void
setStateNormalColorType
(int stateNormalColorType) Set the normal state color type to this widget.Methods inherited from interface com.pranavpandey.android.dynamic.support.widget.base.BaseWidget
initialize, loadFromAttributes
Methods 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
-true
to 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.
-