public class SectionDrawerItem extends AbstractDrawerItem<SectionDrawerItem,SectionDrawerItem.ViewHolder> implements Nameable<SectionDrawerItem>, Typefaceable<SectionDrawerItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
SectionDrawerItem.ItemFactory |
protected static class |
SectionDrawerItem.ViewHolder |
mEnabled, mIdentifier, mOnDrawerItemClickListener, mOnPostBindViewListener, mSelectable, mSelected, mSubItems, mTag| Constructor and Description |
|---|
SectionDrawerItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindView(SectionDrawerItem.ViewHolder viewHolder) |
com.mikepenz.fastadapter.utils.ViewHolderFactory<SectionDrawerItem.ViewHolder> |
getFactory()
the abstract method to retrieve the ViewHolder factory
The ViewHolder factory implementation should look like (see the commented code above)
|
int |
getLayoutRes() |
StringHolder |
getName() |
ColorHolder |
getTextColor() |
int |
getType() |
android.graphics.Typeface |
getTypeface() |
boolean |
hasDivider() |
boolean |
isEnabled() |
boolean |
isSelected() |
SectionDrawerItem |
withDivider(boolean divider) |
SectionDrawerItem |
withName(int nameRes) |
SectionDrawerItem |
withName(java.lang.String name) |
SectionDrawerItem |
withName(StringHolder name) |
SectionDrawerItem |
withTextColor(int textColor) |
SectionDrawerItem |
withTextColorRes(int textColorRes) |
SectionDrawerItem |
withTypeface(android.graphics.Typeface typeface) |
equals, equals, equals, generateView, generateView, getIdentifier, getOnDrawerItemClickListener, getOnPostBindViewListener, getSubItems, getTag, getViewHolder, hashCode, isExpanded, isSelectable, onPostBindView, withEnabled, withIdentifier, withIsExpanded, withOnDrawerItemClickListener, withPostOnBindViewListener, withSelectable, withSetSelected, withSubItems, withSubItems, withTagpublic SectionDrawerItem withName(StringHolder name)
withName in interface Nameable<SectionDrawerItem>public SectionDrawerItem withName(java.lang.String name)
withName in interface Nameable<SectionDrawerItem>public SectionDrawerItem withName(@StringRes int nameRes)
withName in interface Nameable<SectionDrawerItem>public SectionDrawerItem withDivider(boolean divider)
public SectionDrawerItem withTextColor(int textColor)
public SectionDrawerItem withTextColorRes(int textColorRes)
public SectionDrawerItem withTypeface(android.graphics.Typeface typeface)
withTypeface in interface Typefaceable<SectionDrawerItem>public boolean hasDivider()
public ColorHolder getTextColor()
public StringHolder getName()
getName in interface Nameable<SectionDrawerItem>public boolean isEnabled()
isEnabled in interface com.mikepenz.fastadapter.IItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>isEnabled in interface IDrawerItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>isEnabled in class AbstractDrawerItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>public boolean isSelected()
isSelected in interface com.mikepenz.fastadapter.IItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>isSelected in interface IDrawerItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>isSelected in class AbstractDrawerItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>public int getType()
getType in interface com.mikepenz.fastadapter.IItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>getType in interface IDrawerItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>@LayoutRes public int getLayoutRes()
getLayoutRes in interface com.mikepenz.fastadapter.IItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>getLayoutRes in interface IDrawerItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>public android.graphics.Typeface getTypeface()
getTypeface in interface Typefaceable<SectionDrawerItem>public void bindView(SectionDrawerItem.ViewHolder viewHolder)
bindView in interface com.mikepenz.fastadapter.IItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>bindView in interface IDrawerItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>public com.mikepenz.fastadapter.utils.ViewHolderFactory<SectionDrawerItem.ViewHolder> getFactory()
AbstractDrawerItemgetFactory in class AbstractDrawerItem<SectionDrawerItem,SectionDrawerItem.ViewHolder>