library / com.camerash.filterdrawer / ParentItem

ParentItem

abstract class ParentItem

Abstract class for base implementation of ParentItem used in FilterDrawer

Author
Camerash

See Also

FilterDrawer

Types

ViewHolder

abstract inner class ViewHolder : ViewHolder

Base implementation of the ViewHolder of ParentItem used in the FilterDrawer's RecyclerView

Constructors

<init>

ParentItem()

Abstract class for base implementation of ParentItem used in FilterDrawer

Functions

allowSelectMultiple

abstract fun allowSelectMultiple(): Boolean

Supply the option of whether the ChildItems of this ParentItem can be multi-selected

getChildCollection

abstract fun getChildCollection(): List<ChildItem>

Supply the list of ChildItem under this ParentItem

getDefaultIconColorRes

abstract fun getDefaultIconColorRes(): Int

Supply the color resource of icon used when none of the ChildItems under this ParentItem are selected

getDefaultTextColorRes

abstract fun getDefaultTextColorRes(): Int

Supply the color resource used in title text when none of the ChildItems under this ParentItem are selected

getLayoutRes

abstract fun getLayoutRes(): Int

Supply the layout resource for the customization of ParentItem

getParentIcon

abstract fun getParentIcon(): Int

Supply the drawable icon resource for the ParentItem

getParentTitle

abstract fun getParentTitle(): String

Supply title for the ParentItem

getRootLinearLayoutId

abstract fun getRootLinearLayoutId(): Int

Supply the root linear layout id for the customization of ParentItem

getSelectedIconColorRes

abstract fun getSelectedIconColorRes(): Int

Supply the color resource of icon used when one or more ChildItems under this ParentItem are selected

getSelectedTextColorRes

abstract fun getSelectedTextColorRes(): Int

Supply the color resource used in title text when one or more ChildItems under this ParentItem are selected

getToggleExpandOnClickViewId

abstract fun getToggleExpandOnClickViewId(): Int

Supply the view id who is responsible for receiving the onClick event for toggling expansion of ParentItem.

getViewHolder

abstract fun getViewHolder(v: View): ViewHolder

Supply the ViewHolder used by the ParentItem

Inheritors

DefaultParentItem

abstract class DefaultParentItem : ParentItem

Default implementation of ChildItem