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 TypeMethodDescriptionintReturns the value of selected state color applied to this widget.intgetStateSelectedColor(boolean resolve) Returns the value of selected state color applied to this widget.intReturns the selected state color type applied to this widget.voidsetStateSelectedColor(int stateSelectedColorColor) Set the value of selected state color for this widget.voidsetStateSelectedColorType(int stateSelectedColorType) Set the selected 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.DynamicStateWidget
getStateNormalColor, getStateNormalColor, getStateNormalColorType, setStateNormalColor, setStateNormalColorTypeMethods 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-trueto 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.
-