Interface DynamicLinkWidget
- All Superinterfaces:
BaseWidget,DynamicWidget
- All Known Implementing Classes:
DynamicTextView
Interface to create text widgets and tint their link color according to the
DynamicTheme.-
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of link color applied to this widget.intgetLinkColor(boolean resolve) Returns the value of link color applied to this widget.intReturns the link color type applied to this widget.voidSet link color for this widget according to the supplied values.voidsetLinkColor(int linkColor) Set the value of link color for this widget.voidsetLinkColorType(int linkColorType) Set the link 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
-
getLinkColorType
int getLinkColorType()Returns the link color type applied to this widget.- Returns:
- The link color type applied to this widget.
- See Also:
-
setLinkColorType
void setLinkColorType(int linkColorType) Set the link color type to this widget.- Parameters:
linkColorType- Link color type for this widget.- See Also:
-
getLinkColor
Returns the value of link color applied to this widget.- Parameters:
resolve-trueto resolve the link color applied to this widget.- Returns:
- The value of link color applied to this widget.
-
getLinkColor
Returns the value of link color applied to this widget.- Returns:
- The value of link color applied to this widget.
-
setLinkColor
Set the value of link color for this widget.- Parameters:
linkColor- Link color for this widget.
-
setLinkColor
void setLinkColor()Set link 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.
-