public class TextBadgeItem
extends java.lang.Object
BadgeItem| Constructor and Description |
|---|
TextBadgeItem() |
| Modifier and Type | Method and Description |
|---|---|
T |
hide() |
T |
hide(boolean animate) |
boolean |
isHidden() |
T |
setAnimationDuration(int animationDuration) |
TextBadgeItem |
setBackgroundColor(int color) |
TextBadgeItem |
setBackgroundColor(java.lang.String colorCode) |
TextBadgeItem |
setBackgroundColorResource(int colorResource) |
TextBadgeItem |
setBorderColor(int color) |
TextBadgeItem |
setBorderColor(java.lang.String colorCode) |
TextBadgeItem |
setBorderColorResource(int colorResource) |
TextBadgeItem |
setBorderWidth(int borderWidthInPixels) |
TextBadgeItem |
setCornerRadius(int radius) |
T |
setGravity(int gravity) |
T |
setHideOnSelect(boolean hideOnSelect) |
TextBadgeItem |
setText(java.lang.CharSequence text) |
TextBadgeItem |
setTextColor(int color) |
TextBadgeItem |
setTextColor(java.lang.String colorCode) |
TextBadgeItem |
setTextColorResource(int colorResource) |
T |
show() |
T |
show(boolean animate) |
T |
toggle() |
T |
toggle(boolean animate) |
public TextBadgeItem setBackgroundColorResource(int colorResource)
colorResource - resource for background colorpublic TextBadgeItem setBackgroundColor(java.lang.String colorCode)
colorCode - color code for background colorpublic TextBadgeItem setBackgroundColor(int color)
color - background colorpublic TextBadgeItem setTextColorResource(int colorResource)
colorResource - resource for text colorpublic TextBadgeItem setTextColor(java.lang.String colorCode)
colorCode - color code for text colorpublic TextBadgeItem setTextColor(int color)
color - text colorpublic TextBadgeItem setText(java.lang.CharSequence text)
text - text to be set in badge (this shouldn't be empty text)public TextBadgeItem setBorderColorResource(int colorResource)
colorResource - resource for border colorpublic TextBadgeItem setCornerRadius(int radius)
radius - corner radiuspublic TextBadgeItem setBorderColor(java.lang.String colorCode)
colorCode - color code for border colorpublic TextBadgeItem setBorderColor(int color)
color - border colorpublic TextBadgeItem setBorderWidth(int borderWidthInPixels)
borderWidthInPixels - border width in pixelspublic T setGravity(int gravity)
gravity - gravity of badge (TOP|LEFT ..etc)public T setHideOnSelect(boolean hideOnSelect)
hideOnSelect - if true hides badge on tab selectionpublic T setAnimationDuration(int animationDuration)
animationDuration - hide and show animation timepublic T toggle()
public T toggle(boolean animate)
animate - whether to animate the changepublic T show()
public T show(boolean animate)
animate - whether to animate the changepublic T hide()
public T hide(boolean animate)
animate - whether to animate the changepublic boolean isHidden()