belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
AbstractMediaItemPresenter.ViewHolder
public
static
class
AbstractMediaItemPresenter.ViewHolder
extends RowPresenter.ViewHolder
java.lang.Object | |||
↳ | android.support.v17.leanback.widget.Presenter.ViewHolder | ||
↳ | android.support.v17.leanback.widget.RowPresenter.ViewHolder | ||
↳ | android.support.v17.leanback.widget.AbstractMediaItemPresenter.ViewHolder |
The ViewHolder for the AbstractMediaItemPresenter
. It references different views
that place different meta-data corresponding to a media item details, actions, selector,
listeners, and presenters,
Summary
Inherited fields |
---|
From
class
android.support.v17.leanback.widget.RowPresenter.ViewHolder
|
From
class
android.support.v17.leanback.widget.Presenter.ViewHolder
|
Public constructors | |
---|---|
AbstractMediaItemPresenter.ViewHolder(View view)
|
Public methods | |
---|---|
ViewGroup
|
getMediaItemActionsContainer()
|
View
|
getMediaItemDetailsView()
|
TextView
|
getMediaItemDurationView()
|
TextView
|
getMediaItemNameView()
Returns the view displayed when the media item is neither playing nor paused, corresponding to the playback state of PLAY_STATE_INITIAL. |
TextView
|
getMediaItemNumberView()
|
ViewFlipper
|
getMediaItemNumberViewFlipper()
|
View
|
getMediaItemPausedView()
|
View
|
getMediaItemPlayingView()
|
MultiAction[]
|
getMediaItemRowActions()
|
View
|
getMediaItemRowSeparator()
|
View
|
getSelectorView()
|
void
|
notifyActionChanged(MultiActionsProvider.MultiAction action)
Notifies an action has changed in this media row and the UI needs to be updated |
void
|
notifyDetailsChanged()
Notifies the content of the media item details in a row has changed and triggers updating the UI. |
void
|
notifyPlayStateChanged()
Notifies the playback state of the media item row has changed. |
void
|
onBindRowActions()
Binds the actions in a media item row object to their views. |
void
|
setSelectedMediaItemNumberView(int position)
Flips to the view at index 'position'. |
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
|
Public constructors
AbstractMediaItemPresenter.ViewHolder
AbstractMediaItemPresenter.ViewHolder (View view)
Parameters | |
---|---|
view |
View |
Public methods
getMediaItemActionsContainer
ViewGroup getMediaItemActionsContainer ()
Returns | |
---|---|
ViewGroup |
The view containing the set of custom actions |
getMediaItemDetailsView
View getMediaItemDetailsView ()
Returns | |
---|---|
View |
The view container of media item details |
getMediaItemDurationView
TextView getMediaItemDurationView ()
Returns | |
---|---|
TextView |
The TextView responsible for rendering the media item duration |
getMediaItemNameView
TextView getMediaItemNameView ()
Returns the view displayed when the media item is neither playing nor paused, corresponding to the playback state of PLAY_STATE_INITIAL.
Returns | |
---|---|
TextView |
The TextView responsible for rendering the media item name. |
getMediaItemNumberView
TextView getMediaItemNumberView ()
Returns | |
---|---|
TextView |
The TextView responsible for rendering the media item number. This view is rendered when the media item row is neither playing nor paused. |
getMediaItemNumberViewFlipper
ViewFlipper getMediaItemNumberViewFlipper ()
Returns | |
---|---|
ViewFlipper |
The FlipperView responsible for flipping between different media item number views depending on the playback state |
getMediaItemPausedView
View getMediaItemPausedView ()
Returns | |
---|---|
View |
The view rendered when the media item row is paused. |
getMediaItemPlayingView
View getMediaItemPlayingView ()
Returns | |
---|---|
View |
The view rendered when the media item row is playing. |
getMediaItemRowActions
MultiAction[] getMediaItemRowActions ()
Returns | |
---|---|
MultiAction[] |
Array of MultiActions displayed for this media item row |
getMediaItemRowSeparator
View getMediaItemRowSeparator ()
Returns | |
---|---|
View |
The view responsible for rendering the separator line between media rows |
getSelectorView
View getSelectorView ()
Returns | |
---|---|
View |
The SelectorView responsible for highlighting the in-focus view within each media item row |
notifyActionChanged
void notifyActionChanged (MultiActionsProvider.MultiAction action)
Notifies an action has changed in this media row and the UI needs to be updated
Parameters | |
---|---|
action |
MultiActionsProvider.MultiAction : The action whose state has changed
|
notifyDetailsChanged
void notifyDetailsChanged ()
Notifies the content of the media item details in a row has changed and triggers updating
the UI. This causes onBindMediaDetails(ViewHolder, Object)
on the user's provided presenter to be called back, allowing them to update UI
accordingly.
notifyPlayStateChanged
void notifyPlayStateChanged ()
Notifies the playback state of the media item row has changed. This in turn triggers updating of the UI for that media item row if corresponding views are specified for each playback state. By default, 3 views are provided for each playback state, or these views can be provided by the user.
onBindRowActions
void onBindRowActions ()
Binds the actions in a media item row object to their views. This consists of creating (or reusing the existing) action view holders, and populating them with the actions' icons.
setSelectedMediaItemNumberView
void setSelectedMediaItemNumberView (int position)
Flips to the view at index 'position'. This position corresponds to the index of a particular view within the ViewFlipper layout specified for the MediaItemNumberView (see playbackMediaItemNumberViewFlipperLayout attribute).
Parameters | |
---|---|
position |
int : The index of the child view to display.
|
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