AbstractDetailsDescriptionPresenter

public abstract class AbstractDetailsDescriptionPresenter
extends Presenter

java.lang.Object
   ↳ androidx.leanback.widget.Presenter
     ↳ androidx.leanback.widget.AbstractDetailsDescriptionPresenter


An abstract Presenter for rendering a detailed description of an item. Typically this Presenter will be used in a FullWidthDetailsOverviewRowPresenter or PlaybackControlsRowPresenter.

Subclasses must override onBindDescription(AbstractDetailsDescriptionPresenter.ViewHolder, Object) to implement the data binding for this Presenter.

Summary

Nested classes

class AbstractDetailsDescriptionPresenter.ViewHolder

The ViewHolder for the AbstractDetailsDescriptionPresenter

Public constructors

AbstractDetailsDescriptionPresenter()

Public methods

final void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item)

Binds a View to an item.

final AbstractDetailsDescriptionPresenter.ViewHolder onCreateViewHolder(ViewGroup parent)

Creates a new View.

void onUnbindViewHolder(Presenter.ViewHolder viewHolder)

Unbinds a View from an item.

void onViewAttachedToWindow(Presenter.ViewHolder holder)

Called when a view created by this presenter has been attached to a window.

void onViewDetachedFromWindow(Presenter.ViewHolder holder)

Called when a view created by this presenter has been detached from its window.

Protected methods

abstract void onBindDescription(AbstractDetailsDescriptionPresenter.ViewHolder vh, Object item)

Binds the data from the item to the ViewHolder.

Inherited methods

Public constructors

AbstractDetailsDescriptionPresenter

public AbstractDetailsDescriptionPresenter ()

Public methods

onBindViewHolder

public final void onBindViewHolder (Presenter.ViewHolder viewHolder, 
                Object item)

Binds a View to an item.

Parameters