epoxy-adapter / com.airbnb.epoxy.stickyheader / StickyHeaderCallbacks

StickyHeaderCallbacks

interface StickyHeaderCallbacks

Adds sticky headers capabilities to any RecyclerView.Adapter combined with StickyHeaderLinearLayoutManager.

Functions

isStickyHeader

abstract fun isStickyHeader(position: Int): Boolean

Return true if the view at the specified position needs to be sticky else false.

setupStickyHeaderView

open fun setupStickyHeaderView(stickyHeader: View): Unit

Callback to adjusts any necessary properties of the stickyHeader view that is being used as a sticky, eg. elevation. Default behaviour is no-op.

teardownStickyHeaderView

open fun teardownStickyHeaderView(stickyHeader: View): Unit

Callback to revert any properties changed in setupStickyHeaderView. Default behaviour is no-op.

Inheritors

BaseEpoxyAdapter

abstract class BaseEpoxyAdapter : Adapter<EpoxyViewHolder!>, StickyHeaderCallbacks

EpoxyController

abstract class EpoxyController : ModelCollector, StickyHeaderCallbacks

A controller for easily combining EpoxyModel instances in a RecyclerView.Adapter. Simply implement #buildModels() to declare which models should be used, and in which order. Call #requestModelBuild() whenever your data changes, and the controller will call #buildModels(), update the adapter with the new models, and notify any changes between the new and old models.