PlaybackControlsRowPresenter
open class PlaybackControlsRowPresenter : PlaybackRowPresenter
kotlin.Any | ||||
↳ | androidx.leanback.widget.Presenter | |||
↳ | androidx.leanback.widget.RowPresenter | |||
↳ | androidx.leanback.widget.PlaybackRowPresenter | |||
↳ | androidx.leanback.widget.PlaybackControlsRowPresenter |
A PlaybackControlsRowPresenter renders a PlaybackControlsRow
to display a series of playback control buttons. Typically this row will be the first row in a fragment such as the androidx.leanback.app.PlaybackFragment
.
The detailed description is rendered using a Presenter
passed in PlaybackControlsRowPresenter(Presenter)
. Typically this will be an instance of AbstractDetailsDescriptionPresenter
. The application can access the detailed description ViewHolder from ViewHolder#mDescriptionViewHolder
.
Summary
Nested classes | |
---|---|
open |
A ViewHolder for the PlaybackControlsRow. |
Public constructors | |
---|---|
Constructor for a PlaybackControlsRowPresenter. |
|
<init>() Constructor for a PlaybackControlsRowPresenter. |
Public methods | |
---|---|
open Boolean |
Returns true if secondary actions are hidden. |
open Int |
Returns the background color. |
open OnActionClickedListener! |
Returns the listener for |
open Int |
Returns the primary color for the progress bar. |
open Unit |
onReappear(rowViewHolder: RowPresenter.ViewHolder!) |
open Unit |
setBackgroundColor(@ColorInt color: Int) Sets the background color. |
open Unit |
setOnActionClickedListener(listener: OnActionClickedListener!) Sets the listener for |
open Unit |
setProgressColor(@ColorInt color: Int) Sets the primary color for the progress bar. |
open Unit |
Sets the secondary actions to be hidden behind a "more actions" button. |
open Unit |
Shows or hides space at the bottom of the playback controls row. |
open Unit |
Displays the primary actions. |
Protected methods | |
---|---|
open RowPresenter.ViewHolder! |
createRowViewHolder(parent: ViewGroup!) |
open Unit |
onBindRowViewHolder(holder: RowPresenter.ViewHolder!, item: Any!) |
open Unit | |
open Unit | |
open Unit |
onRowViewSelected(vh: RowPresenter.ViewHolder!, selected: Boolean) |
open Unit |
onUnbindRowViewHolder(holder: RowPresenter.ViewHolder!) |
Public constructors
<init>
PlaybackControlsRowPresenter(descriptionPresenter: Presenter!)
Constructor for a PlaybackControlsRowPresenter.
Parameters | |
---|---|
descriptionPresenter |
Presenter!: Presenter for displaying item details. |
<init>
PlaybackControlsRowPresenter()
Constructor for a PlaybackControlsRowPresenter.