library / com.camerash.filterdrawer / ParentItem / ViewHolder

ViewHolder

abstract inner class ViewHolder : ViewHolder

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

Parameters

v - View used in constructing ViewHolder

See Also

ParentAdapter

Constructors

<init>

ViewHolder(v: View)

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

Properties

expandableView

var expandableView: ExpandableLayout

The ExpandableLayout which host the child RecyclerView

recyclerView

var recyclerView: RecyclerView

The ChildItem RecyclerView

Functions

bindView

abstract fun bindView(parent: ParentItem): Unit

Called when ViewHolder binds with ParentItem

getColor

fun getColor(color: Int): Int

Helper method for Supply color from color resource

onChildDeselect

abstract fun onChildDeselect(parent: ParentItem, childSet: Set<ChildItem>): Unit

Called when one of the ChildItem is deselected

onChildSelect

abstract fun onChildSelect(parent: ParentItem, childSet: Set<ChildItem>): Unit

Called when one of the ChildItem is selected

onReset

abstract fun onReset(parent: ParentItem): Unit

Called when the FilterDrawer resets

Inheritors

ViewHolder

inner class ViewHolder : ViewHolder

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