Nested classes |
class |
PlaybackTransportRowPresenter.ViewHolder
A ViewHolder for the PlaybackControlsRow supporting seek UI.
|
Public constructors
PlaybackTransportRowPresenter
PlaybackTransportRowPresenter ()
Public methods
getDefaultSeekIncrement
float getDefaultSeekIncrement ()
Get default seek increment if PlaybackSeekDataProvider
is null.
Returns |
float |
float value between 0(inclusive) and 1(inclusive).
|
getProgressColor
int getProgressColor ()
Returns the primary color for the progress bar. If no color was set, transparent
is returned.
onReappear
void onReappear (RowPresenter.ViewHolder rowViewHolder)
Provides hook to update the UI when the view reappears.
Parameters |
rowViewHolder |
RowPresenter.ViewHolder |
setDefaultSeekIncrement
void setDefaultSeekIncrement (float ratio)
Set default seek increment if PlaybackSeekDataProvider
is null.
Parameters |
ratio |
float : float value between 0(inclusive) and 1(inclusive).
|
setDescriptionPresenter
void setDescriptionPresenter (Presenter descriptionPresenter)
Parameters |
descriptionPresenter |
Presenter : Presenter for displaying item details.
|
setOnActionClickedListener
void setOnActionClickedListener (OnActionClickedListener listener)
Sets the listener for Action
click events.
Parameters |
listener |
OnActionClickedListener |
setProgressColor
void setProgressColor (int color)
Sets the primary color for the progress bar. If not set, a default from
the theme will be used.
Protected methods
createRowViewHolder
RowPresenter.ViewHolder createRowViewHolder (ViewGroup parent)
Called to create a ViewHolder object for a Row. Subclasses will override
this method to return a different concrete ViewHolder object.
Parameters |
parent |
ViewGroup : The parent View for the Row's view holder. |
onProgressBarClicked
void onProgressBarClicked (PlaybackTransportRowPresenter.ViewHolder vh)
Client of progress bar is clicked, default implementation delegate click to
PlayPauseAction.
Parameters |
vh |
PlaybackTransportRowPresenter.ViewHolder : ViewHolder of PlaybackTransportRowPresenter
|
onRowViewAttachedToWindow
void onRowViewAttachedToWindow (RowPresenter.ViewHolder vh)
Invoked when the row view is attached to the window.
Parameters |
vh |
RowPresenter.ViewHolder |
onRowViewDetachedFromWindow
void onRowViewDetachedFromWindow (RowPresenter.ViewHolder vh)
Invoked when the row view is detached from the window.
Parameters |
vh |
RowPresenter.ViewHolder |
onRowViewSelected
void onRowViewSelected (RowPresenter.ViewHolder vh,
boolean selected)
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.
Parameters |
vh |
RowPresenter.ViewHolder |
selected |
boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."],[],[]]