RowPresenter.ViewHolder

public static class RowPresenter.ViewHolder
extends Presenter.ViewHolder

java.lang.Object
   ↳ androidx.leanback.widget.Presenter.ViewHolder
     ↳ androidx.leanback.widget.RowPresenter.ViewHolder


A ViewHolder for a Row.

Summary

Fields

protected final ColorOverlayDimmer mColorDimmer

Inherited fields

Public constructors

ViewHolder(View view)

Constructor for ViewHolder.

Public methods

final RowHeaderPresenter.ViewHolder getHeaderViewHolder()

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

final BaseOnItemViewClickedListener getOnItemViewClickedListener()

Returns the listener for item click event.

final BaseOnItemViewSelectedListener getOnItemViewSelectedListener()

Returns the listener for item or row selection.

View.OnKeyListener getOnKeyListener()

Returns the key listener.

final Row getRow()

Returns the row bound to this ViewHolder.

final Object getRowObject()

Returns the Row object bound to this ViewHolder.

final float getSelectLevel()

Returns the current selection level of the Row.

Object getSelectedItem()

Return currently selected item inside a row ViewHolder.

Presenter.ViewHolder getSelectedItemViewHolder()

Return RowPresenter.ViewHolder of currently selected item inside a row ViewHolder.

final boolean isExpanded()

Returns whether the Row is in its expanded state.

final boolean isSelected()

Returns whether the Row is selected.

final void setActivated(boolean activated)

Sets the row view's activated status.

final void setOnItemViewClickedListener(BaseOnItemViewClickedListener listener)

Sets the listener for item click event.

final void setOnItemViewSelectedListener(BaseOnItemViewSelectedListener listener)

Sets the listener for item or row selection.

void setOnKeyListener(View.OnKeyListener keyListener)

Sets a key listener.

final void syncActivatedStatus(View view)

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