public static final class BadgeLayout.Badge
extends java.lang.Object
BadgeLayout.newBadge().| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getTag()
Return the tag object of this badge
|
java.lang.CharSequence |
getText()
Return the text of this badge.
|
BadgeLayout.Badge |
setEnabled(boolean enabled)
Set the enabled state of this badge
|
BadgeLayout.Badge |
setIcon(android.graphics.drawable.Drawable icon)
Set the icon displayed on this badge.
|
BadgeLayout.Badge |
setSelected(boolean selected)
Set the selection state of this badge
|
BadgeLayout.Badge |
setTag(java.lang.Object tag)
Give this Badge an arbitrary object to hold for later use.
|
BadgeLayout.Badge |
setText(java.lang.CharSequence text)
Set the text displayed on this badge.
|
public BadgeLayout.Badge setTag(java.lang.Object tag)
tag - Object to storepublic BadgeLayout.Badge setText(java.lang.CharSequence text)
text - The text to displaypublic BadgeLayout.Badge setIcon(android.graphics.drawable.Drawable icon)
icon - The drawable to use as an iconpublic BadgeLayout.Badge setSelected(boolean selected)
selected - The selection statepublic BadgeLayout.Badge setEnabled(boolean enabled)
enabled - The enabled statepublic java.lang.Object getTag()
public java.lang.CharSequence getText()