epoxy-adapter / com.airbnb.epoxy / EpoxyHolder

EpoxyHolder

abstract class EpoxyHolder

Used in conjunction with com.airbnb.epoxy.EpoxyModelWithHolder to provide a view holder pattern when binding to a model.

Constructors

<init>

EpoxyHolder(parent: ViewParent)
EpoxyHolder()

Functions

bindView

abstract fun bindView(itemView: View): Unit

Called when this holder is created, with the view that it should hold. You can use this opportunity to find views by id, and do any other initialization you need. This is called only once for the lifetime of the class.

Inheritors

ModelGroupHolder

class ModelGroupHolder : EpoxyHolder