public static final class BadgeLayout.Badge
extends java.lang.Object
BadgeLayout.newBadge().| Modifier and Type | Method and Description |
|---|---|
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 |
setText(java.lang.CharSequence text)
Set the text displayed on this badge.
|
public 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.CharSequence getText()