added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

AbstractDetailsDescriptionPresenter

public abstract class AbstractDetailsDescriptionPresenter
extends Presenter

java.lang.Object
   ↳ android.support.v17.leanback.widget.Presenter
     ↳ android.support.v17.leanback.widget.AbstractDetailsDescriptionPresenter


An abstract Presenter for rendering a detailed description of an item. Typically this Presenter will be used in a DetailsOverviewRowPresenter 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

From class android.support.v17.leanback.widget.Presenter