java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Row | |
↳ | android.support.v17.leanback.widget.PlaybackControlsRow |
A row of playback controls to be displayed by a PlaybackControlsRowPresenter
.
This row consists of some optional item detail, a series of primary actions,
and an optional series of secondary actions.
Controls are specified via an ObjectAdapter
containing one or more
Action
s.
Adapters should have their PresenterSelector
set to an instance of
ControlButtonPresenterSelector
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PlaybackControlsRow.ClosedCaptioningAction | An action for displaying a CC (Closed Captioning) icon. | ||||||||||
PlaybackControlsRow.FastForwardAction | An action displaying an icon for fast forward. | ||||||||||
PlaybackControlsRow.HighQualityAction | An action for displaying a HQ (High Quality) icon. | ||||||||||
PlaybackControlsRow.MoreActions | An action displaying an icon for "more actions". | ||||||||||
PlaybackControlsRow.MultiAction | Base class for an action comprised of a series of icons. | ||||||||||
PlaybackControlsRow.PlayPauseAction | An action displaying icons for play and pause. | ||||||||||
PlaybackControlsRow.RepeatAction | An action for displaying three repeat states: none, one, or all. | ||||||||||
PlaybackControlsRow.RewindAction | An action displaying an icon for rewind. | ||||||||||
PlaybackControlsRow.ShuffleAction | An action for displaying a shuffle icon. | ||||||||||
PlaybackControlsRow.SkipNextAction | An action displaying an icon for skip next. | ||||||||||
PlaybackControlsRow.SkipPreviousAction | An action displaying an icon for skip previous. | ||||||||||
PlaybackControlsRow.ThumbsAction | A base class for displaying a thumbs action. | ||||||||||
PlaybackControlsRow.ThumbsDownAction | An action displaying an icon for thumbs down. | ||||||||||
PlaybackControlsRow.ThumbsUpAction | An action displaying an icon for thumbs up. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for a PlaybackControlsRow that displays some details from
the given item.
| |||||||||||
Constructor for a PlaybackControlsRow that has no item details.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the buffered progress for the playback controls row.
| |||||||||||
Returns the current time in milliseconds for the playback controls row.
| |||||||||||
Gets the image
Drawable of this row.
| |||||||||||
Gets the main item for the details page.
| |||||||||||
Returns the primary actions
ObjectAdapter .
| |||||||||||
Returns the secondary actions
ObjectAdapter .
| |||||||||||
Returns the total time in milliseconds for the playback controls row.
| |||||||||||
Sets the buffered progress for the playback controls row.
| |||||||||||
Sets the current time in milliseconds for the playback controls row.
| |||||||||||
Sets a
Bitmap for this row.
| |||||||||||
Sets a {link @Drawable} image for this row.
| |||||||||||
Sets the primary actions
ObjectAdapter .
| |||||||||||
Sets the secondary actions
ObjectAdapter .
| |||||||||||
Sets the total time in milliseconds for the playback controls row.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.Row
| |||||||||||
From class
java.lang.Object
|
Constructor for a PlaybackControlsRow that displays some details from the given item.
item | The main item for the row. |
---|
Constructor for a PlaybackControlsRow that has no item details.
Returns the buffered progress for the playback controls row.
Returns the current time in milliseconds for the playback controls row.
Gets the image Drawable
of this row.
Returns the secondary actions ObjectAdapter
.
Returns the total time in milliseconds for the playback controls row.
Sets the buffered progress for the playback controls row. If this row is bound to a view, the view will automatically be updated to reflect the new value.
Sets the current time in milliseconds for the playback controls row. If this row is bound to a view, the view will automatically be updated to reflect the new value.
Sets a Bitmap
for this row.
context | The context to retrieve display metrics from. |
---|---|
bm | The bitmap to set. |
Sets a {link @Drawable} image for this row.
drawable | The drawable to set. |
---|
Sets the primary actions ObjectAdapter
.
Sets the secondary actions ObjectAdapter
.
Sets the total time in milliseconds for the playback controls row.