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 TypeMethodDescriptionint
Returns the value of error color applied to this widget.int
getErrorColor
(boolean resolve) Returns the value of error color applied to this widget.int
Returns the error color type applied to this widget.void
Set error color for this widget according to the supplied values.void
setErrorColor
(int errorColor) Set the value of error color for this widget.void
setErrorColorType
(int errorColorType) Set the error 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
-
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
-true
to 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.
-