Interface DynamicStateSelectedWidget
- All Superinterfaces:
BaseWidget
,DynamicStateWidget
,DynamicWidget
- All Known Implementing Classes:
DynamicNavigationView
Interface to create dynamic widgets with a normal and selected state according to the
DynamicTheme
.-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of selected state color applied to this widget.int
getStateSelectedColor
(boolean resolve) Returns the value of selected state color applied to this widget.int
Returns the selected state color type applied to this widget.void
setStateSelectedColor
(int stateSelectedColorColor) Set the value of selected state color for this widget.void
setStateSelectedColorType
(int stateSelectedColorType) Set the selected 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.DynamicStateWidget
getStateNormalColor, getStateNormalColor, getStateNormalColorType, setStateNormalColor, setStateNormalColorType
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
-
getStateSelectedColorType
int getStateSelectedColorType()Returns the selected state color type applied to this widget.- Returns:
- The selected state color type applied to this widget.
- See Also:
-
setStateSelectedColorType
void setStateSelectedColorType(int stateSelectedColorType) Set the selected state color type to this widget.- Parameters:
stateSelectedColorType
- Normal state color type for this widget.- See Also:
-
getStateSelectedColor
Returns the value of selected state color applied to this widget.- Parameters:
resolve
-true
to resolve the selected state color.- Returns:
- The value of selected state color applied to this widget.
-
getStateSelectedColor
Returns the value of selected state color applied to this widget.- Returns:
- The value of selected state color applied to this widget.
-
setStateSelectedColor
Set the value of selected state color for this widget.- Parameters:
stateSelectedColorColor
- Normal state color for this widget.
-