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,
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()
|
TextView
|
getMediaItemNumberView()
|
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
|
onBindRowActions()
Binds the actions in a media item row object to their views. |
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
|
AbstractMediaItemPresenter.ViewHolder (View view)
Parameters | |
---|---|
view |
View
|
ViewGroup getMediaItemActionsContainer ()
Returns | |
---|---|
ViewGroup |
The view containing the set of custom actions |
View getMediaItemDetailsView ()
Returns | |
---|---|
View |
The view container of track details |
TextView getMediaItemDurationView ()
Returns | |
---|---|
TextView |
The TextView responsible for rendering the track duration |
TextView getMediaItemNameView ()
Returns | |
---|---|
TextView |
The TextView responsible for rendering the track name |
TextView getMediaItemNumberView ()
Returns | |
---|---|
TextView |
The TextView responsible for rendering the track number |
View getMediaItemRowSeparator ()
Returns | |
---|---|
View |
The view responsible for rendering the separator line between media rows |
View getSelectorView ()
Returns | |
---|---|
View |
The SelectorView responsible for highlighting the in-focus view within each media item row |
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
|
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.
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.