java.lang.Object | |||
↳ | android.support.v17.leanback.widget.Presenter | ||
↳ | android.support.v17.leanback.widget.RowPresenter | ||
↳ | android.support.v17.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 PlaybackControlsFragment
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PlaybackControlsRowPresenter.ViewHolder | A ViewHolder for the PlaybackControlsRow. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.RowPresenter
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for a PlaybackControlsRowPresenter.
| |||||||||||
Constructor for a PlaybackControlsRowPresenter.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if secondary actions are hidden.
| |||||||||||
Returns the background color.
| |||||||||||
Gets the listener for
Action click events.
| |||||||||||
Returns the primary color for the progress bar.
| |||||||||||
Sets the background color.
| |||||||||||
Sets the listener for
Action click events.
| |||||||||||
Sets the primary color for the progress bar.
| |||||||||||
Sets the secondary actions to be hidden behind a "more actions" button.
| |||||||||||
Shows or hides space at the bottom of the playback controls row.
| |||||||||||
Display the primary actions.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called to create a ViewHolder object for a Row.
| |||||||||||
Subclass may override this to respond to selected state changes of a Row.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.RowPresenter
| |||||||||||
From class
android.support.v17.leanback.widget.Presenter
| |||||||||||
From class
java.lang.Object
|
Constructor for a PlaybackControlsRowPresenter.
descriptionPresenter | Presenter for displaying item details. |
---|
Constructor for a PlaybackControlsRowPresenter.
Returns true if secondary actions are hidden.
Returns the background color. If no background color was set, transparent is returned.
Gets the listener for Action
click events.
Returns the primary color for the progress bar. If no color was set, transparent is returned.
Sets the background color. If not set, a default from the theme will be used.
Sets the listener for Action
click events.
Sets the primary color for the progress bar. If not set, a default from the theme will be used.
Sets the secondary actions to be hidden behind a "more actions" button. When "more actions" is selected, the primary actions are replaced with the secondary actions.
Shows or hides space at the bottom of the playback controls row. This allows the row to hug the bottom of the display when no other rows are present.
Display the primary actions.
Called to create a ViewHolder object for a Row. Subclasses will override this method to return a different concrete ViewHolder object.
parent | The parent View for the Row's view holder. |
---|
Subclass may override this to respond to selected state changes of a Row. Subclass may make visual changes to Row view but must not create animation on the Row view.