public static class AbstractMediaItemPresenter.ViewHolder extends RowPresenter.ViewHolder
AbstractMediaItemPresenter
. It references different views
that place different meta-data corresponding to a media item details, actions, selector,
listeners, and presenters,mColorDimmer
view
Constructor and Description |
---|
ViewHolder(View view) |
Modifier and Type | Method and Description |
---|---|
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() |
MultiActionsProvider.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'.
|
getHeaderViewHolder, getOnItemViewClickedListener, getOnItemViewSelectedListener, getOnKeyListener, getRow, getRowObject, getSelectLevel, isExpanded, isSelected, setActivated, setOnItemViewClickedListener, setOnItemViewSelectedListener, setOnKeyListener, syncActivatedStatus
getFacet, setFacet
public ViewHolder(View view)
public void onBindRowActions()
public void notifyActionChanged(MultiActionsProvider.MultiAction action)
action
- The action whose state has changedpublic void notifyDetailsChanged()
AbstractMediaItemPresenter.onBindMediaDetails(ViewHolder, Object)
on the user's provided presenter to be called back, allowing them to update UI
accordingly.public void notifyPlayStateChanged()
public View getSelectorView()
public ViewFlipper getMediaItemNumberViewFlipper()
public TextView getMediaItemNumberView()
public View getMediaItemPausedView()
public View getMediaItemPlayingView()
public void setSelectedMediaItemNumberView(int position)
position
- The index of the child view to display.public TextView getMediaItemNameView()
public TextView getMediaItemDurationView()
public View getMediaItemDetailsView()
public View getMediaItemRowSeparator()
public ViewGroup getMediaItemActionsContainer()
public MultiActionsProvider.MultiAction[] getMediaItemRowActions()