public class MiniProfileDrawerItem extends AbstractDrawerItem<MiniProfileDrawerItem,MiniProfileDrawerItem.ViewHolder> implements IProfile<MiniProfileDrawerItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
MiniProfileDrawerItem.ItemFactory |
protected static class |
MiniProfileDrawerItem.ViewHolder |
| Modifier and Type | Field and Description |
|---|---|
protected DimenHolder |
customHeight |
protected ImageHolder |
icon |
mEnabled, mIdentifier, mOnDrawerItemClickListener, mOnPostBindViewListener, mSelectable, mSelected, mSubItems, mTag| Constructor and Description |
|---|
MiniProfileDrawerItem() |
MiniProfileDrawerItem(ProfileDrawerItem profile) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindView(MiniProfileDrawerItem.ViewHolder viewHolder) |
StringHolder |
getEmail() |
com.mikepenz.fastadapter.utils.ViewHolderFactory<MiniProfileDrawerItem.ViewHolder> |
getFactory()
the abstract method to retrieve the ViewHolder factory
The ViewHolder factory implementation should look like (see the commented code above)
|
ImageHolder |
getIcon() |
int |
getLayoutRes() |
StringHolder |
getName() |
int |
getType() |
MiniProfileDrawerItem |
withCustomHeight(DimenHolder customHeight) |
MiniProfileDrawerItem |
withCustomHeightDp(int customHeightDp) |
MiniProfileDrawerItem |
withCustomHeightPx(int customHeightPx) |
MiniProfileDrawerItem |
withCustomHeightRes(int customHeightRes) |
MiniProfileDrawerItem |
withEmail(java.lang.String email) |
MiniProfileDrawerItem |
withIcon(android.graphics.Bitmap iconBitmap) |
MiniProfileDrawerItem |
withIcon(android.graphics.drawable.Drawable icon) |
MiniProfileDrawerItem |
withIcon(com.mikepenz.iconics.typeface.IIcon icon) |
MiniProfileDrawerItem |
withIcon(int iconRes) |
MiniProfileDrawerItem |
withIcon(java.lang.String url) |
MiniProfileDrawerItem |
withIcon(android.net.Uri uri) |
MiniProfileDrawerItem |
withName(java.lang.String name) |
equals, equals, equals, generateView, generateView, 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, waitisSelectable, withSelectableprotected ImageHolder icon
protected DimenHolder customHeight
public MiniProfileDrawerItem()
public MiniProfileDrawerItem(ProfileDrawerItem profile)
public MiniProfileDrawerItem withName(java.lang.String name)
withName in interface IProfile<MiniProfileDrawerItem>public StringHolder getName()
getName in interface IProfile<MiniProfileDrawerItem>public MiniProfileDrawerItem withEmail(java.lang.String email)
withEmail in interface IProfile<MiniProfileDrawerItem>public StringHolder getEmail()
getEmail in interface IProfile<MiniProfileDrawerItem>public MiniProfileDrawerItem withIcon(android.graphics.drawable.Drawable icon)
withIcon in interface IProfile<MiniProfileDrawerItem>public MiniProfileDrawerItem withIcon(@DrawableRes int iconRes)
withIcon in interface IProfile<MiniProfileDrawerItem>public MiniProfileDrawerItem withIcon(android.graphics.Bitmap iconBitmap)
withIcon in interface IProfile<MiniProfileDrawerItem>public MiniProfileDrawerItem withIcon(java.lang.String url)
withIcon in interface IProfile<MiniProfileDrawerItem>public MiniProfileDrawerItem withIcon(android.net.Uri uri)
withIcon in interface IProfile<MiniProfileDrawerItem>public MiniProfileDrawerItem withIcon(com.mikepenz.iconics.typeface.IIcon icon)
withIcon in interface IProfile<MiniProfileDrawerItem>public MiniProfileDrawerItem withCustomHeightRes(@DimenRes int customHeightRes)
public MiniProfileDrawerItem withCustomHeightDp(int customHeightDp)
public MiniProfileDrawerItem withCustomHeightPx(int customHeightPx)
public MiniProfileDrawerItem withCustomHeight(DimenHolder customHeight)
public ImageHolder getIcon()
getIcon in interface IProfile<MiniProfileDrawerItem>public int getType()
getType in interface com.mikepenz.fastadapter.IItem<MiniProfileDrawerItem,MiniProfileDrawerItem.ViewHolder>getType in interface IDrawerItem<MiniProfileDrawerItem,MiniProfileDrawerItem.ViewHolder>@LayoutRes public int getLayoutRes()
getLayoutRes in interface com.mikepenz.fastadapter.IItem<MiniProfileDrawerItem,MiniProfileDrawerItem.ViewHolder>getLayoutRes in interface IDrawerItem<MiniProfileDrawerItem,MiniProfileDrawerItem.ViewHolder>public void bindView(MiniProfileDrawerItem.ViewHolder viewHolder)
bindView in interface com.mikepenz.fastadapter.IItem<MiniProfileDrawerItem,MiniProfileDrawerItem.ViewHolder>bindView in interface IDrawerItem<MiniProfileDrawerItem,MiniProfileDrawerItem.ViewHolder>public com.mikepenz.fastadapter.utils.ViewHolderFactory<MiniProfileDrawerItem.ViewHolder> getFactory()
AbstractDrawerItemgetFactory in class AbstractDrawerItem<MiniProfileDrawerItem,MiniProfileDrawerItem.ViewHolder>