library / com.camerash.filterdrawer / DefaultParentItem

DefaultParentItem

abstract class DefaultParentItem : ParentItem

Default implementation of ChildItem

Author
Camerash

See Also

ChildItem

ChildAdapter

Types

ViewHolder

inner class ViewHolder : ViewHolder

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

Constructors

<init>

DefaultParentItem()

Default implementation of ChildItem

Functions

getDefaultIconColorRes

open fun getDefaultIconColorRes(): Int

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

getDefaultTextColorRes

open fun getDefaultTextColorRes(): Int

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

getLayoutRes

open fun getLayoutRes(): Int

Supply default layout resource

getRootLinearLayoutId

open fun getRootLinearLayoutId(): Int

Supply default root LinearLayout id

getSelectedIconColorRes

open fun getSelectedIconColorRes(): Int

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

getSelectedTextColorRes

open fun getSelectedTextColorRes(): Int

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

getToggleExpandOnClickViewId

open fun getToggleExpandOnClickViewId(): Int

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

getViewHolder

open fun getViewHolder(v: View): ViewHolder

Supply the default implementation of ViewHolder used by the ParentItem

Inherited 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

getParentIcon

abstract fun getParentIcon(): Int

Supply the drawable icon resource for the ParentItem

getParentTitle

abstract fun getParentTitle(): String

Supply title for the ParentItem