library / com.camerash.filterdrawer / ChildItem / ViewHolder

ViewHolder

abstract inner class ViewHolder : ViewHolder

Base implementation of the ViewHolder of ChildItem used in the FilterDrawer's ParentItems' child RecyclerView

Parameters

v - View used in constructing ViewHolder

See Also

ChildAdapter

Constructors

<init>

ViewHolder(v: View)

Base implementation of the ViewHolder of ChildItem used in the FilterDrawer's ParentItems' child RecyclerView

Functions

bindView

abstract fun bindView(child: ChildItem): Unit

Called when ViewHolder binds with ChildItem

getColor

fun getColor(color: Int): Int

Helper method for Supply color from color resource

onDeselect

abstract fun onDeselect(child: ChildItem): Unit

Called when the ChildItem got deselected

onReset

abstract fun onReset(child: ChildItem): Unit

Called when the FilterDrawer resets

onSelect

abstract fun onSelect(child: ChildItem): Unit

Called when the ChildItem got selected

Inheritors

ViewHolder

inner class ViewHolder : ViewHolder

Default implementation of ViewHolder of ChildItem