public abstract class BaseSecondaryDrawerItem<T,VH extends BaseViewHolder> extends BaseDrawerItem<T,VH>
colorStateList, disabledIconColor, disabledTextColor, icon, iconColor, iconTinted, level, name, selectedColor, selectedIcon, selectedIconColor, selectedTextColor, textColor, typefacemEnabled, mIdentifier, mOnDrawerItemClickListener, mOnPostBindViewListener, mSelectable, mSelected, mSubItems, mTag| Constructor and Description |
|---|
BaseSecondaryDrawerItem() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindViewHelper(BaseViewHolder viewHolder)
a helper method to have the logic for all secondaryDrawerItems only once
|
protected int |
getColor(android.content.Context ctx)
helper method to decide for the correct color
OVERWRITE to get the correct secondary color
|
StringHolder |
getDescription() |
ColorHolder |
getDescriptionTextColor() |
T |
withDescription(int descriptionRes) |
T |
withDescription(java.lang.String description) |
T |
withDescriptionTextColor(int color) |
T |
withDescriptionTextColorRes(int colorRes) |
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, getFactory, getIdentifier, getOnDrawerItemClickListener, getOnPostBindViewListener, getSubItems, getTag, getViewHolder, hashCode, isEnabled, isExpanded, isSelectable, isSelected, onPostBindView, withEnabled, withIdentifier, withIsExpanded, withOnDrawerItemClickListener, withPostOnBindViewListener, withSelectable, withSetSelected, withSubItems, withSubItems, withTagclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetTag, withTagbindView, getLayoutRes, getTypepublic T withDescription(java.lang.String description)
public T withDescription(@StringRes int descriptionRes)
public T withDescriptionTextColor(int color)
public T withDescriptionTextColorRes(@ColorRes int colorRes)
public StringHolder getDescription()
public ColorHolder getDescriptionTextColor()
protected int getColor(android.content.Context ctx)
getColor in class BaseDrawerItem<T,VH extends BaseViewHolder>ctx - protected void bindViewHelper(BaseViewHolder viewHolder)
viewHolder -