belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
PlaybackTransportRowPresenter.ViewHolder
public
class
PlaybackTransportRowPresenter.ViewHolder
extends PlaybackRowPresenter.ViewHolder
implements
PlaybackSeekUi
java.lang.Object | ||||
↳ | android.support.v17.leanback.widget.Presenter.ViewHolder | |||
↳ | android.support.v17.leanback.widget.RowPresenter.ViewHolder | |||
↳ | android.support.v17.leanback.widget.PlaybackRowPresenter.ViewHolder | |||
↳ | android.support.v17.leanback.widget.PlaybackTransportRowPresenter.ViewHolder |
A ViewHolder for the PlaybackControlsRow supporting seek UI.
Summary
Inherited fields |
---|
From
class
android.support.v17.leanback.widget.RowPresenter.ViewHolder
|
From
class
android.support.v17.leanback.widget.Presenter.ViewHolder
|
Public constructors | |
---|---|
PlaybackTransportRowPresenter.ViewHolder(View rootView, Presenter descriptionPresenter)
Constructor of ViewHolder of PlaybackTransportRowPresenter |
Public methods | |
---|---|
final
TextView
|
getCurrentPositionView()
Returns the TextView that showing current position label. |
final
Presenter.ViewHolder
|
getDescriptionViewHolder()
|
final
TextView
|
getDurationView()
Returns the TextView that showing total time label. |
void
|
setPlaybackSeekUiClient(PlaybackSeekUi.Client client)
Interface to be implemented by UI widget to support PlaybackSeekUi. |
Protected methods | |
---|---|
void
|
onSetCurrentPositionLabel(long currentTimeMs)
Called to update current time label. |
void
|
onSetDurationLabel(long totalTimeMs)
Called to update total time label. |
Inherited methods | |
---|---|
From
class
android.support.v17.leanback.widget.RowPresenter.ViewHolder
| |
From
class
android.support.v17.leanback.widget.Presenter.ViewHolder
| |
From
class
java.lang.Object
| |
From
interface
android.support.v17.leanback.widget.FacetProvider
| |
From
interface
android.support.v17.leanback.widget.PlaybackSeekUi
|
Public constructors
PlaybackTransportRowPresenter.ViewHolder
PlaybackTransportRowPresenter.ViewHolder (View rootView, Presenter descriptionPresenter)
Constructor of ViewHolder of PlaybackTransportRowPresenter
Parameters | |
---|---|
rootView |
View : Root view of the ViewHolder. |
descriptionPresenter |
Presenter : The presenter that will be used to create description
ViewHolder. The description view will be added into tree.
|
Public methods
getCurrentPositionView
TextView getCurrentPositionView ()
Returns the TextView that showing current position label. This method might be used in
onSetCurrentPositionLabel(long)
.
Returns | |
---|---|
TextView |
The TextView that showing current position label. |
getDescriptionViewHolder
Presenter.ViewHolder getDescriptionViewHolder ()
Returns | |
---|---|
Presenter.ViewHolder |
The ViewHolder for description. |
getDurationView
TextView getDurationView ()
Returns the TextView that showing total time label. This method might be used in
onSetDurationLabel(long)
.
Returns | |
---|---|
TextView |
The TextView that showing total time label. |
setPlaybackSeekUiClient
void setPlaybackSeekUiClient (PlaybackSeekUi.Client client)
Interface to be implemented by UI widget to support PlaybackSeekUi.
Parameters | |
---|---|
client |
PlaybackSeekUi.Client |
Protected methods
onSetCurrentPositionLabel
void onSetCurrentPositionLabel (long currentTimeMs)
Called to update current time label. Default implementation updates the TextView
getCurrentPositionView()
. Subclass might override.
Parameters | |
---|---|
currentTimeMs |
long : Current playback position in milliseconds.
|
onSetDurationLabel
void onSetDurationLabel (long totalTimeMs)
Called to update total time label. Default implementation updates the TextView
getDurationView()
. Subclass might override.
Parameters | |
---|---|
totalTimeMs |
long : Total duration of the media in milliseconds.
|
Interfaces
- BaseGridView.OnKeyInterceptListener
- BaseGridView.OnMotionInterceptListener
- BaseGridView.OnTouchInterceptListener
- BaseGridView.OnUnhandledKeyListener
- BaseOnItemViewClickedListener
- BaseOnItemViewSelectedListener
- BrowseFrameLayout.OnChildFocusListener
- BrowseFrameLayout.OnFocusSearchListener
- FacetProvider
- FacetProviderAdapter
- FocusHighlight
- FragmentAnimationProvider
- ImeKeyMonitor
- ImeKeyMonitor.ImeKeyListener
- MultiActionsProvider
- OnActionClickedListener
- OnChildLaidOutListener
- OnChildSelectedListener
- OnItemViewClickedListener
- OnItemViewSelectedListener
- PlaybackSeekUi
- SearchBar.SearchBarListener
- SearchBar.SearchBarPermissionListener
- SearchEditText.OnKeyboardDismissListener
- SpeechRecognitionCallback
- TitleViewAdapter.Provider
- ViewHolderTask
Classes
- AbstractDetailsDescriptionPresenter
- AbstractDetailsDescriptionPresenter.ViewHolder
- AbstractMediaItemPresenter
- AbstractMediaItemPresenter.ViewHolder
- AbstractMediaListHeaderPresenter
- AbstractMediaListHeaderPresenter.ViewHolder
- Action
- ArrayObjectAdapter
- BaseCardView
- BaseCardView.LayoutParams
- BaseGridView
- BrowseFrameLayout
- ClassPresenterSelector
- ControlButtonPresenterSelector
- CursorObjectAdapter
- DetailsOverviewLogoPresenter
- DetailsOverviewLogoPresenter.ViewHolder
- DetailsOverviewRow
- DetailsOverviewRow.Listener
- DetailsOverviewRowPresenter
- DetailsOverviewRowPresenter.ViewHolder
- DetailsParallax
- DiffCallback
- DividerPresenter
- DividerRow
- FocusHighlightHelper
- FullWidthDetailsOverviewRowPresenter
- FullWidthDetailsOverviewRowPresenter.Listener
- FullWidthDetailsOverviewRowPresenter.ViewHolder
- FullWidthDetailsOverviewRowPresenter.ViewHolder.DetailsOverviewRowListener
- FullWidthDetailsOverviewSharedElementHelper
- GuidanceStylist
- GuidanceStylist.Guidance
- GuidedAction
- GuidedAction.Builder
- GuidedAction.BuilderBase
- GuidedActionDiffCallback
- GuidedActionEditText
- GuidedActionsStylist
- GuidedActionsStylist.ViewHolder
- GuidedDatePickerAction
- GuidedDatePickerAction.Builder
- GuidedDatePickerAction.BuilderBase
- HeaderItem
- HorizontalGridView
- HorizontalHoverCardSwitcher
- ImageCardView
- ItemAlignmentFacet
- ItemAlignmentFacet.ItemAlignmentDef
- ItemBridgeAdapter
- ItemBridgeAdapter.AdapterListener
- ItemBridgeAdapter.ViewHolder
- ItemBridgeAdapter.Wrapper
- ItemBridgeAdapterShadowOverlayWrapper
- ListRow
- ListRowHoverCardView
- ListRowPresenter
- ListRowPresenter.SelectItemViewHolderTask
- ListRowPresenter.ViewHolder
- ListRowView
- MultiActionsProvider.MultiAction
- ObjectAdapter
- ObjectAdapter.DataObserver
- OnChildViewHolderSelectedListener
- PageRow
- Parallax
- Parallax.FloatProperty
- Parallax.IntProperty
- Parallax.PropertyMarkerValue
- ParallaxEffect
- ParallaxTarget
- ParallaxTarget.DirectPropertyTarget
- ParallaxTarget.PropertyValuesHolderTarget
- PlaybackControlsRow
- PlaybackControlsRow.ClosedCaptioningAction
- PlaybackControlsRow.FastForwardAction
- PlaybackControlsRow.HighQualityAction
- PlaybackControlsRow.MoreActions
- PlaybackControlsRow.MultiAction
- PlaybackControlsRow.OnPlaybackProgressCallback
- PlaybackControlsRow.PictureInPictureAction
- PlaybackControlsRow.PlayPauseAction
- PlaybackControlsRow.RepeatAction
- PlaybackControlsRow.RewindAction
- PlaybackControlsRow.ShuffleAction
- PlaybackControlsRow.SkipNextAction
- PlaybackControlsRow.SkipPreviousAction
- PlaybackControlsRow.ThumbsAction
- PlaybackControlsRow.ThumbsDownAction
- PlaybackControlsRow.ThumbsUpAction
- PlaybackControlsRowPresenter
- PlaybackControlsRowPresenter.ViewHolder
- PlaybackRowPresenter
- PlaybackRowPresenter.ViewHolder
- PlaybackSeekDataProvider
- PlaybackSeekDataProvider.ResultCallback
- PlaybackSeekUi.Client
- PlaybackTransportRowPresenter
- PlaybackTransportRowPresenter.ViewHolder
- Presenter
- Presenter.ViewHolder
- Presenter.ViewHolderTask
- PresenterSelector
- PresenterSwitcher
- RecyclerViewParallax
- RecyclerViewParallax.ChildPositionProperty
- Row
- RowHeaderPresenter
- RowHeaderPresenter.ViewHolder
- RowHeaderView
- RowPresenter
- RowPresenter.ViewHolder
- SearchBar
- SearchEditText
- SearchOrbView
- SearchOrbView.Colors
- SectionRow
- ShadowOverlayContainer
- ShadowOverlayHelper
- ShadowOverlayHelper.Builder
- ShadowOverlayHelper.Options
- SinglePresenterSelector
- SparseArrayObjectAdapter
- SpeechOrbView
- TitleHelper
- TitleView
- TitleViewAdapter
- VerticalGridPresenter
- VerticalGridPresenter.ViewHolder
- VerticalGridView