Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

ViewHolder

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

A ViewHolder for a Row.

Summary

Public constructors
<init>(view: View!)

Constructor for ViewHolder.

Public methods
RowHeaderPresenter.ViewHolder!

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

BaseOnItemViewClickedListener<Any!>!

Returns the listener for item click event.

BaseOnItemViewSelectedListener<Any!>!

Returns the listener for item or row selection.

open OnKeyListener!

Returns the key listener.

Row!

Returns the row bound to this ViewHolder.

Any!

Returns the Row object bound to this ViewHolder.

Float

Returns the current selection level of the Row.

open Any!

Return currently selected item inside a row ViewHolder.

open Presenter.ViewHolder!

Return ViewHolder of currently selected item inside a row ViewHolder.

Boolean

Returns whether the Row is in its expanded state.

Boolean

Returns whether the Row is selected.

Unit
setActivated(activated: Boolean)

Sets the row view's activated status.

Unit

Sets the listener for item click event.

Unit

Sets the listener for item or row selection.

open Unit

Sets a key listener.

Unit

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

Inherited functions