library / com.camerash.filterdrawer / DefaultChildItem / ViewHolder

ViewHolder

inner class ViewHolder : ViewHolder

Default implementation of ViewHolder of ChildItem

Parameters

v - View used in constructing ViewHolder

See Also

ChildAdapter

ChildItem.ViewHolder

Constructors

<init>

ViewHolder(v: View)

Default implementation of ViewHolder of ChildItem

Functions

bindView

fun bindView(child: ChildItem): Unit

Called when ViewHolder binds with ChildItem

onDeselect

fun onDeselect(child: ChildItem): Unit

Called when the ChildItem got deselected

onReset

fun onReset(child: ChildItem): Unit

Called when the FilterDrawer resets

onSelect

fun onSelect(child: ChildItem): Unit

Called when the ChildItem got selected

Inherited Functions

getColor

fun getColor(color: Int): Int

Helper method for Supply color from color resource