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 root view for inserting details description.

DetailsOverviewLogoPresenter.ViewHolder!

Returns the ViewHolder for logo.

ViewGroup!

Returns the view of actions row.

Presenter.ViewHolder!

Returns the ViewHolder for DetailsDescription.

Int

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

ViewGroup!

Returns the rectangle area with a color background.

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

getDetailsDescriptionFrame

fun getDetailsDescriptionFrame(): ViewGroup!

Returns the root view for inserting details description.

getLogoViewHolder

fun getLogoViewHolder(): DetailsOverviewLogoPresenter.ViewHolder!

Returns the ViewHolder for logo.

getActionsRow

fun getActionsRow(): ViewGroup!

Returns the view of actions row.

getDetailsDescriptionViewHolder

fun getDetailsDescriptionViewHolder(): Presenter.ViewHolder!

Returns the ViewHolder for DetailsDescription.

getState

fun getState(): Int

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

getOverviewView

fun getOverviewView(): ViewGroup!

Returns the rectangle area with a color background.

Protected methods

createRowListener

protected open fun createRowListener(): DetailsOverviewRow.Listener!

Properties

mRowListener

protected val mRowListener: DetailsOverviewRow.Listener!