ViewHolder

open class ViewHolder : RowPresenter.ViewHolder
kotlin.Any
   ↳ androidx.leanback.widget.Presenter.ViewHolder
   ↳ androidx.leanback.widget.RowPresenter.ViewHolder
   ↳ androidx.leanback.widget.FullWidthDetailsOverviewRowPresenter.ViewHolder

A ViewHolder for the DetailsOverviewRow.

Summary

Nested classes

open

Public constructors

<init>(rootView: View!, detailsPresenter: Presenter!, logoPresenter: DetailsOverviewLogoPresenter!)

Constructor for the ViewHolder.

Public methods

ViewGroup!

Returns the view of actions row.

ViewGroup!

Returns the root view for inserting details description.

Presenter.ViewHolder!

Returns the ViewHolder for DetailsDescription.

DetailsOverviewLogoPresenter.ViewHolder!

Returns the ViewHolder for logo.

ViewGroup!

Returns the rectangle area with a color background.

Int

Returns current state of the ViewHolder set by FullWidthDetailsOverviewRowPresenter#setState(ViewHolder, int).

Protected methods

open DetailsOverviewRow.Listener!

Inherited functions

Properties

DetailsOverviewRow.Listener!

Inherited properties

Public constructors

<init>

ViewHolder(rootView: View!, detailsPresenter: Presenter!, logoPresenter: DetailsOverviewLogoPresenter!)

Constructor for the ViewHolder.

Parameters
rootView View!: The root View that this view holder will be attached to.

Public methods

getActionsRow

fun getActionsRow(): ViewGroup!

Returns the view of actions row.

getDetailsDescriptionFrame

fun getDetailsDescriptionFrame(): ViewGroup!

Returns the root view for inserting details description.

getDetailsDescriptionViewHolder

fun getDetailsDescriptionViewHolder(): Presenter.ViewHolder!

Returns the ViewHolder for DetailsDescription.

getLogoViewHolder

fun getLogoViewHolder(): DetailsOverviewLogoPresenter.ViewHolder!

Returns the ViewHolder for logo.

getOverviewView

fun getOverviewView(): ViewGroup!

Returns the rectangle area with a color background.

getState

fun getState(): Int

Returns current state of the ViewHolder set by FullWidthDetailsOverviewRowPresenter#setState(ViewHolder, int).

Protected methods

createRowListener

protected open fun createRowListener(): DetailsOverviewRow.Listener!

Properties

mRowListener

protected val mRowListener: DetailsOverviewRow.Listener!