library / com.camerash.filterdrawer / DefaultChildItem

DefaultChildItem

abstract class DefaultChildItem : ChildItem

Default implementation of ChildItem

Author
Camerash

See Also

ChildItem

ChildAdapter

Types

ViewHolder

inner class ViewHolder : ViewHolder

Default implementation of ViewHolder of ChildItem

Constructors

<init>

DefaultChildItem()

Default implementation of ChildItem

Functions

getDefaultBackgroundColorRes

open fun getDefaultBackgroundColorRes(): Int

Supply the default color resource used by ChildItem background (Unselected)

getDefaultTextColorRes

open fun getDefaultTextColorRes(): Int

Supply the default color resource used by ChildItem text (Unselected)

getLayoutRes

open fun getLayoutRes(): Int

Supply default layout resource

getSelectedBackgroundColorRes

open fun getSelectedBackgroundColorRes(): Int

Supply the selected color resource used by ChildItem background

getSelectedTextColorRes

open fun getSelectedTextColorRes(): Int

Supply the selected color resource used by ChildItem text

getViewHolder

open fun getViewHolder(v: View): ViewHolder

Supply the ViewHolder implementation

Inherited Functions

getTitle

abstract fun getTitle(): String

Supply title for the ChildItem