library / com.camerash.filterdrawer / ChildItem

ChildItem

abstract class ChildItem

Abstract class for base implementation of ChildItem used in FilterDrawer

Author
Camerash

See Also

FilterDrawer

Types

ViewHolder

abstract inner class ViewHolder : ViewHolder

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

Constructors

<init>

ChildItem()

Abstract class for base implementation of ChildItem used in FilterDrawer

Functions

getDefaultBackgroundColorRes

abstract fun getDefaultBackgroundColorRes(): Int

Supply the color resource used in background when the ChildItem is not selected

getDefaultTextColorRes

abstract fun getDefaultTextColorRes(): Int

Supply the color resource used in title text when the ChildItem is not selected

getLayoutRes

abstract fun getLayoutRes(): Int

Supply the layout resource for the customization of ChildItem

getSelectedBackgroundColorRes

abstract fun getSelectedBackgroundColorRes(): Int

Supply the color resource used in background when the ChildItem is selected

getSelectedTextColorRes

abstract fun getSelectedTextColorRes(): Int

Supply the color resource used in title text when the ChildItem is selected

getTitle

abstract fun getTitle(): String

Supply title for the ChildItem

getViewHolder

abstract fun getViewHolder(v: View): ViewHolder

Supply the view holder used by the ChildItem

Inheritors

DefaultChildItem

abstract class DefaultChildItem : ChildItem

Default implementation of ChildItem