public abstract class AbstractSwitchableDrawerItem<Item extends AbstractSwitchableDrawerItem> extends BaseDescribeableDrawerItem<Item,AbstractSwitchableDrawerItem.ViewHolder>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractSwitchableDrawerItem.ItemFactory |
static class |
AbstractSwitchableDrawerItem.ViewHolder |
colorStateList, disabledIconColor, disabledTextColor, icon, iconColor, iconTinted, level, name, selectedColor, selectedIcon, selectedIconColor, selectedTextColor, textColor, typefacemEnabled, mIdentifier, mOnDrawerItemClickListener, mOnPostBindViewListener, mSelectable, mSelected, mSubItems, mTag| Constructor and Description |
|---|
AbstractSwitchableDrawerItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindView(AbstractSwitchableDrawerItem.ViewHolder viewHolder,
java.util.List payloads) |
com.mikepenz.fastadapter.utils.ViewHolderFactory<AbstractSwitchableDrawerItem.ViewHolder> |
getFactory()
the abstract method to retrieve the ViewHolder factory
The ViewHolder factory implementation should look like (see the commented code above)
|
int |
getLayoutRes() |
OnCheckedChangeListener |
getOnCheckedChangeListener() |
int |
getType() |
boolean |
isChecked() |
boolean |
isSwitchEnabled() |
Item |
withCheckable(boolean checkable) |
Item |
withChecked(boolean checked) |
Item |
withOnCheckedChangeListener(OnCheckedChangeListener onCheckedChangeListener) |
Item |
withSwitchEnabled(boolean switchEnabled) |
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, withTagpublic Item withChecked(boolean checked)
public Item withSwitchEnabled(boolean switchEnabled)
public Item withOnCheckedChangeListener(OnCheckedChangeListener onCheckedChangeListener)
public Item withCheckable(boolean checkable)
public boolean isChecked()
public boolean isSwitchEnabled()
public OnCheckedChangeListener getOnCheckedChangeListener()
public int getType()
@LayoutRes public int getLayoutRes()
public void bindView(AbstractSwitchableDrawerItem.ViewHolder viewHolder, java.util.List payloads)
public com.mikepenz.fastadapter.utils.ViewHolderFactory<AbstractSwitchableDrawerItem.ViewHolder> getFactory()
AbstractDrawerItemgetFactory in class AbstractDrawerItem<Item extends AbstractSwitchableDrawerItem,AbstractSwitchableDrawerItem.ViewHolder>