public abstract class AbstractBadgeableDrawerItem<Item extends AbstractBadgeableDrawerItem> extends BaseDescribeableDrawerItem<Item,AbstractBadgeableDrawerItem.ViewHolder> implements ColorfulBadgeable<Item>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBadgeableDrawerItem.ItemFactory |
static class |
AbstractBadgeableDrawerItem.ViewHolder |
| Modifier and Type | Field and Description |
|---|---|
protected StringHolder |
mBadge |
protected BadgeStyle |
mBadgeStyle |
colorStateList, disabledIconColor, disabledTextColor, icon, iconColor, iconTinted, level, name, selectedColor, selectedIcon, selectedIconColor, selectedTextColor, textColor, typefacemEnabled, mIdentifier, mOnDrawerItemClickListener, mOnPostBindViewListener, mSelectable, mSelected, mSubItems, mTag| Constructor and Description |
|---|
AbstractBadgeableDrawerItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindView(AbstractBadgeableDrawerItem.ViewHolder viewHolder,
java.util.List payloads) |
StringHolder |
getBadge() |
BadgeStyle |
getBadgeStyle() |
com.mikepenz.fastadapter.utils.ViewHolderFactory<AbstractBadgeableDrawerItem.ViewHolder> |
getFactory()
the abstract method to retrieve the ViewHolder factory
The ViewHolder factory implementation should look like (see the commented code above)
|
int |
getLayoutRes() |
int |
getType() |
Item |
withBadge(int badgeRes) |
Item |
withBadge(java.lang.String badge) |
Item |
withBadge(StringHolder badge) |
Item |
withBadgeStyle(BadgeStyle badgeStyle) |
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, getOnDrawerItemClickListener, getOnPostBindViewListener, getParent, getSubItems, getTag, getViewHolder, hashCode, isAutoExpanding, isEnabled, isExpanded, isSelectable, isSelected, onPostBindView, unbindView, withEnabled, withIdentifier, withIsExpanded, withOnDrawerItemClickListener, withParent, withPostOnBindViewListener, withSelectable, withSetSelected, withSubItems, withSubItems, withTagprotected StringHolder mBadge
protected BadgeStyle mBadgeStyle
public Item withBadge(StringHolder badge)
withBadge in interface Badgeable<Item extends AbstractBadgeableDrawerItem>public Item withBadge(java.lang.String badge)
withBadge in interface Badgeable<Item extends AbstractBadgeableDrawerItem>public Item withBadge(@StringRes int badgeRes)
withBadge in interface Badgeable<Item extends AbstractBadgeableDrawerItem>public Item withBadgeStyle(BadgeStyle badgeStyle)
withBadgeStyle in interface ColorfulBadgeable<Item extends AbstractBadgeableDrawerItem>public StringHolder getBadge()
getBadge in interface Badgeable<Item extends AbstractBadgeableDrawerItem>public BadgeStyle getBadgeStyle()
getBadgeStyle in interface ColorfulBadgeable<Item extends AbstractBadgeableDrawerItem>public int getType()
getType in interface com.mikepenz.fastadapter.IItem<Item extends AbstractBadgeableDrawerItem,AbstractBadgeableDrawerItem.ViewHolder>getType in interface IDrawerItem<Item extends AbstractBadgeableDrawerItem,AbstractBadgeableDrawerItem.ViewHolder>@LayoutRes public int getLayoutRes()
getLayoutRes in interface com.mikepenz.fastadapter.IItem<Item extends AbstractBadgeableDrawerItem,AbstractBadgeableDrawerItem.ViewHolder>getLayoutRes in interface IDrawerItem<Item extends AbstractBadgeableDrawerItem,AbstractBadgeableDrawerItem.ViewHolder>public void bindView(AbstractBadgeableDrawerItem.ViewHolder viewHolder, java.util.List payloads)
bindView in interface com.mikepenz.fastadapter.IItem<Item extends AbstractBadgeableDrawerItem,AbstractBadgeableDrawerItem.ViewHolder>bindView in interface IDrawerItem<Item extends AbstractBadgeableDrawerItem,AbstractBadgeableDrawerItem.ViewHolder>public com.mikepenz.fastadapter.utils.ViewHolderFactory<AbstractBadgeableDrawerItem.ViewHolder> getFactory()
AbstractDrawerItemgetFactory in class AbstractDrawerItem<Item extends AbstractBadgeableDrawerItem,AbstractBadgeableDrawerItem.ViewHolder>