public class ExpandableBadgeDrawerItem extends BaseDescribeableDrawerItem<ExpandableBadgeDrawerItem,ExpandableBadgeDrawerItem.ViewHolder> implements ColorfulBadgeable<ExpandableBadgeDrawerItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
ExpandableBadgeDrawerItem.ItemFactory |
static class |
ExpandableBadgeDrawerItem.ViewHolder |
| Modifier and Type | Field and Description |
|---|---|
protected ColorHolder |
arrowColor |
protected int |
arrowRotationAngleEnd |
protected int |
arrowRotationAngleStart |
protected StringHolder |
mBadge |
protected BadgeStyle |
mBadgeStyle |
colorStateList, disabledIconColor, disabledTextColor, icon, iconColor, iconTinted, level, name, selectedColor, selectedIcon, selectedIconColor, selectedTextColor, textColor, typefacemEnabled, mIdentifier, mOnPostBindViewListener, mSelectable, mSelected, mSubItems, mTag| Constructor and Description |
|---|
ExpandableBadgeDrawerItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindView(ExpandableBadgeDrawerItem.ViewHolder viewHolder,
java.util.List payloads) |
StringHolder |
getBadge() |
BadgeStyle |
getBadgeStyle() |
com.mikepenz.fastadapter.utils.ViewHolderFactory<ExpandableBadgeDrawerItem.ViewHolder> |
getFactory()
the abstract method to retrieve the ViewHolder factory
The ViewHolder factory implementation should look like (see the commented code above)
|
int |
getLayoutRes() |
Drawer.OnDrawerItemClickListener |
getOnDrawerItemClickListener() |
int |
getType() |
ExpandableBadgeDrawerItem |
withBadge(int badgeRes) |
ExpandableBadgeDrawerItem |
withBadge(java.lang.String badge) |
ExpandableBadgeDrawerItem |
withBadge(StringHolder badge) |
ExpandableBadgeDrawerItem |
withBadgeStyle(BadgeStyle badgeStyle) |
ExpandableBadgeDrawerItem |
withOnDrawerItemClickListener(Drawer.OnDrawerItemClickListener onDrawerItemClickListener)
this listener is called when an item is clicked in the drawer.
|
bindViewHelper, getDescription, getDescriptionTextColor, withDescription, withDescription, withDescriptionTextColor, withDescriptionTextColorResgetColor, getDisabledIconColor, getDisabledTextColor, getIcon, getIconColor, getIconColor, getLevel, getName, getSelectedColor, getSelectedColor, getSelectedIcon, getSelectedIconColor, getSelectedIconColor, getSelectedTextColor, getSelectedTextColor, getTextColor, getTextColorStateList, getTypeface, isIconTinted, withDisabledIconColor, withDisabledIconColorRes, withDisabledTextColor, withDisabledTextColorRes, withIcon, withIcon, withIcon, withIcon, withIconColor, withIconColorRes, withIconTinted, withIconTintingEnabled, withLevel, withName, withName, withName, withSelectedColor, withSelectedColorRes, withSelectedIcon, withSelectedIcon, withSelectedIconColor, withSelectedIconColorRes, withSelectedTextColor, withSelectedTextColorRes, withTextColor, withTextColorRes, withTintSelectedIcon, withTypefaceequals, equals, equals, generateView, generateView, getIdentifier, getOnPostBindViewListener, getParent, getSubItems, getTag, getViewHolder, hashCode, isAutoExpanding, isEnabled, isExpanded, isSelectable, isSelected, onPostBindView, unbindView, withEnabled, withIdentifier, withIsExpanded, withParent, withPostOnBindViewListener, withSelectable, withSetSelected, withSubItems, withSubItems, withTagprotected ColorHolder arrowColor
protected int arrowRotationAngleStart
protected int arrowRotationAngleEnd
protected StringHolder mBadge
protected BadgeStyle mBadgeStyle
public int getType()
getType in interface com.mikepenz.fastadapter.IItem<ExpandableBadgeDrawerItem,ExpandableBadgeDrawerItem.ViewHolder>getType in interface IDrawerItem<ExpandableBadgeDrawerItem,ExpandableBadgeDrawerItem.ViewHolder>@LayoutRes public int getLayoutRes()
getLayoutRes in interface com.mikepenz.fastadapter.IItem<ExpandableBadgeDrawerItem,ExpandableBadgeDrawerItem.ViewHolder>getLayoutRes in interface IDrawerItem<ExpandableBadgeDrawerItem,ExpandableBadgeDrawerItem.ViewHolder>public void bindView(ExpandableBadgeDrawerItem.ViewHolder viewHolder, java.util.List payloads)
bindView in interface com.mikepenz.fastadapter.IItem<ExpandableBadgeDrawerItem,ExpandableBadgeDrawerItem.ViewHolder>bindView in interface IDrawerItem<ExpandableBadgeDrawerItem,ExpandableBadgeDrawerItem.ViewHolder>public ExpandableBadgeDrawerItem withOnDrawerItemClickListener(Drawer.OnDrawerItemClickListener onDrawerItemClickListener)
AbstractDrawerItemwithOnDrawerItemClickListener in class AbstractDrawerItem<ExpandableBadgeDrawerItem,ExpandableBadgeDrawerItem.ViewHolder>public Drawer.OnDrawerItemClickListener getOnDrawerItemClickListener()
public com.mikepenz.fastadapter.utils.ViewHolderFactory<ExpandableBadgeDrawerItem.ViewHolder> getFactory()
AbstractDrawerItemgetFactory in class AbstractDrawerItem<ExpandableBadgeDrawerItem,ExpandableBadgeDrawerItem.ViewHolder>public ExpandableBadgeDrawerItem withBadge(StringHolder badge)
withBadge in interface Badgeable<ExpandableBadgeDrawerItem>public ExpandableBadgeDrawerItem withBadge(java.lang.String badge)
withBadge in interface Badgeable<ExpandableBadgeDrawerItem>public ExpandableBadgeDrawerItem withBadge(@StringRes int badgeRes)
withBadge in interface Badgeable<ExpandableBadgeDrawerItem>public ExpandableBadgeDrawerItem withBadgeStyle(BadgeStyle badgeStyle)
withBadgeStyle in interface ColorfulBadgeable<ExpandableBadgeDrawerItem>public StringHolder getBadge()
getBadge in interface Badgeable<ExpandableBadgeDrawerItem>public BadgeStyle getBadgeStyle()
getBadgeStyle in interface ColorfulBadgeable<ExpandableBadgeDrawerItem>