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 PlaybackOverlayFragment
.
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 mDescriptionViewHolder
.
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.
| |||||||||||
Returns 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.
| |||||||||||
Displays the primary actions.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called to create a ViewHolder object for a Row.
| |||||||||||
Binds the given row object to the given ViewHolder.
| |||||||||||
Invoked when the row view is attached to the window.
| |||||||||||
Invoked when the row view is detached from the window.
| |||||||||||
Called when the given row view changes selection state.
| |||||||||||
Unbinds the given ViewHolder.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.RowPresenter
| |||||||||||
From class
android.support.v17.leanback.widget.Presenter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.support.v17.leanback.widget.FacetProvider
|
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.
Returns 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.
Displays the primary actions. This will override the user having selected "more actions"
to display the secondary actions; see setSecondaryActionsHidden(boolean)
.
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. |
---|
Binds the given row object to the given ViewHolder.
Invoked when the row view is attached to the window.
Invoked when the row view is detached from the window.
Called when the given row view changes selection state. A subclass may override this to respond to selected state changes of a Row. A subclass may make visual changes to Row view but must not create animation on the Row view.