Interface DynamicErrorWidget
- All Superinterfaces:
BaseWidget,DynamicWidget
- All Known Implementing Classes:
DynamicTextInputLayout
Interface to create text widgets and tint their error color according to the
DynamicTheme.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of error color applied to this widget.intgetErrorColor(boolean resolve) Returns the value of error color applied to this widget.intReturns the error color type applied to this widget.voidSet error color for this widget according to the supplied values.voidsetErrorColor(int errorColor) Set the value of error color for this widget.voidsetErrorColorType(int errorColorType) Set the error 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
-
getErrorColorType
int getErrorColorType()Returns the error color type applied to this widget.- Returns:
- The error color type applied to this widget.
- See Also:
-
setErrorColorType
void setErrorColorType(int errorColorType) Set the error color type to this widget.- Parameters:
errorColorType- Link color type for this widget.- See Also:
-
getErrorColor
Returns the value of error color applied to this widget.- Parameters:
resolve-trueto resolve the error color applied to this widget.- Returns:
- The value of error color applied to this widget.
-
getErrorColor
Returns the value of error color applied to this widget.- Returns:
- The value of error color applied to this widget.
-
setErrorColor
Set the value of error color for this widget.- Parameters:
errorColor- Link color for this widget.
-
setErrorColor
void setErrorColor()Set error color for this widget according to the supplied values.Generally, it should be a tint color so that link will be visible on this widget background.
-