PlaybackRowPresenter.ViewHolder


public class PlaybackRowPresenter.ViewHolder extends RowPresenter.ViewHolder

Known direct subclasses
PlaybackControlsRowPresenter.ViewHolder

A ViewHolder for the PlaybackControlsRow.

PlaybackTransportRowPresenter.ViewHolder

A ViewHolder for the PlaybackControlsRow supporting seek UI.


This container is used for trapping click events and passing them to the playback controls.

Summary

Public constructors

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.

Public constructors

ViewHolder

Added in 1.2.0-alpha04
public ViewHolder(View view)