library / com.camerash.filterdrawer / DefaultParentItem / ViewHolder

ViewHolder

inner class ViewHolder : ViewHolder

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

Parameters

v - View used in constructing ViewHolder

See Also

ParentAdapter

ParentItem.ViewHolder

Constructors

<init>

ViewHolder(v: View)

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

Inherited Properties

expandableView

var expandableView: ExpandableLayout

The ExpandableLayout which host the child RecyclerView

recyclerView

var recyclerView: RecyclerView

The ChildItem RecyclerView

Functions

bindView

fun bindView(parent: ParentItem): Unit

Called when ViewHolder binds with ParentItem

onChildDeselect

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

Called when one of the ChildItem is deselected

onChildSelect

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

Called when one of the ChildItem is selected

onReset

fun onReset(parent: ParentItem): Unit

Called when the FilterDrawer resets

Inherited Functions

getColor

fun getColor(color: Int): Int

Helper method for Supply color from color resource