FullWidthDetailsOverviewRowPresenter.ViewHolder


public inner class FullWidthDetailsOverviewRowPresenter.ViewHolder extends RowPresenter.ViewHolder


A ViewHolder for the DetailsOverviewRow.

Summary

Protected fields

final DetailsOverviewRow.Listener

Public constructors

ViewHolder(
    View rootView,
    Presenter detailsPresenter,
    DetailsOverviewLogoPresenter logoPresenter
)

Constructor for the ViewHolder.

Public methods

final ViewGroup

Returns the view of actions row.

final ViewGroup

Returns the root view for inserting details description.

final Presenter.ViewHolder

Returns the ViewHolder for DetailsDescription.

final DetailsOverviewLogoPresenter.ViewHolder

Returns the ViewHolder for logo.

final ViewGroup

Returns the rectangle area with a color background.

final int

Returns current state of the ViewHolder set by setState.

Inherited methods

From androidx.leanback.widget.FacetProvider
abstract @Nullable Object
getFacet(@NonNull Class<Object> facetClass)

Queries optional implemented facet.

From androidx.leanback.widget.Presenter.ViewHolder
final Object
getFacet(Class<Object> facetClass)

Queries optional implemented facet.

final void
setFacet(Class<Object> facetClass, Object facetImpl)

Sets dynamic implemented facet in addition to basic ViewHolder functions.

From androidx.leanback.widget.RowPresenter.ViewHolder
final RowHeaderPresenter.ViewHolder

Returns the view holder for the Row header for this Row.

final BaseOnItemViewClickedListener

Returns the listener for item click event.

final BaseOnItemViewSelectedListener

Returns the listener for item or row selection.

View.OnKeyListener

Returns the key listener.

final Row

Returns the row bound to this ViewHolder.

final Object

Returns the Row object bound to this ViewHolder.

final float

Returns the current selection level of the Row.

@Nullable Object

Return currently selected item inside a row ViewHolder.

@Nullable Presenter.ViewHolder

Return ViewHolder of currently selected item inside a row ViewHolder.

final boolean

Returns whether the Row is in its expanded state.

final boolean

Returns whether the Row is selected.

final void
setActivated(boolean activated)

Sets the row view's activated status.

final void

Sets the listener for item click event.

final void

Sets the listener for item or row selection.

void

Sets a key listener.

final void

Synchronizes the activated status of view to the last value passed through setActivated.

Protected fields

mRowListener

Added in 1.1.0
protected final DetailsOverviewRow.Listener mRowListener

Public constructors

ViewHolder

Added in 1.1.0
public ViewHolder(
    View rootView,
    Presenter detailsPresenter,
    DetailsOverviewLogoPresenter logoPresenter
)

Constructor for the ViewHolder.

Parameters
View rootView

The root View that this view holder will be attached to.

Public methods

getActionsRow

Added in 1.1.0
public final ViewGroup getActionsRow()

Returns the view of actions row.

getDetailsDescriptionFrame

Added in 1.1.0
public final ViewGroup getDetailsDescriptionFrame()

Returns the root view for inserting details description.

getDetailsDescriptionViewHolder

Added in 1.1.0
public final Presenter.ViewHolder getDetailsDescriptionViewHolder()

Returns the ViewHolder for DetailsDescription.

getLogoViewHolder

Added in 1.1.0
public final DetailsOverviewLogoPresenter.ViewHolder getLogoViewHolder()

Returns the ViewHolder for logo.

getOverviewView

Added in 1.1.0
public final ViewGroup getOverviewView()

Returns the rectangle area with a color background.

getState

Added in 1.1.0
public final int getState()

Returns current state of the ViewHolder set by setState.

Protected methods

createRowListener

Added in 1.1.0
protected DetailsOverviewRow.Listener createRowListener()