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 TypeMethodDescriptionint
Returns the value of link color applied to this widget.int
getLinkColor
(boolean resolve) Returns the value of link color applied to this widget.int
Returns the link color type applied to this widget.void
Set link color for this widget according to the supplied values.void
setLinkColor
(int linkColor) Set the value of link color for this widget.void
setLinkColorType
(int linkColorType) Set the link 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
-
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
-true
to 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.
-