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 | |
---|---|
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! |
getRow() 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 |
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 |
setOnItemViewClickedListener(listener: BaseOnItemViewClickedListener<Any!>!) Sets the listener for item click event. |
Unit |
setOnItemViewSelectedListener(listener: BaseOnItemViewSelectedListener<Any!>!) Sets the listener for item or row selection. |
open Unit |
setOnKeyListener(keyListener: OnKeyListener!) Sets a key listener. |
Unit |
syncActivatedStatus(view: View!) Synchronizes the activated status of view to the last value passed through |
Inherited functions | |
---|---|