public class

PlaybackTransportRowPresenter.ViewHolder

extends PlaybackRowPresenter.ViewHolder

implements PlaybackSeekUi

Overview

A ViewHolder for the PlaybackControlsRow supporting seek UI.

Summary

Fields
from RowPresenter.ViewHoldermColorDimmer
from Presenter.ViewHolderview
Constructors
publicViewHolder(View rootView, Presenter descriptionPresenter)

Constructor of ViewHolder of PlaybackTransportRowPresenter

Methods
public final TextViewgetCurrentPositionView()

Returns the TextView that showing current position label.

public final Presenter.ViewHoldergetDescriptionViewHolder()

public final TextViewgetDurationView()

Returns the TextView that showing total time label.

protected voidonSetCurrentPositionLabel(long currentTimeMs)

Called to update current time label.

protected voidonSetDurationLabel(long totalTimeMs)

Called to update total time label.

public voidsetPlaybackSeekUiClient(PlaybackSeekUi.Client client)

from RowPresenter.ViewHoldergetHeaderViewHolder, getOnItemViewClickedListener, getOnItemViewSelectedListener, getOnKeyListener, getRow, getRowObject, getSelectedItem, getSelectedItemViewHolder, getSelectLevel, isExpanded, isSelected, setActivated, setOnItemViewClickedListener, setOnItemViewSelectedListener, setOnKeyListener, syncActivatedStatus
from Presenter.ViewHoldergetFacet, setFacet
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public ViewHolder(View rootView, Presenter descriptionPresenter)

Constructor of ViewHolder of PlaybackTransportRowPresenter

Parameters:

rootView: Root view of the ViewHolder.
descriptionPresenter: The presenter that will be used to create description ViewHolder. The description view will be added into tree.

Methods

public final Presenter.ViewHolder getDescriptionViewHolder()

Returns:

The ViewHolder for description.

public void setPlaybackSeekUiClient(PlaybackSeekUi.Client client)

public final TextView getDurationView()

Returns the TextView that showing total time label. This method might be used in PlaybackTransportRowPresenter.ViewHolder.onSetDurationLabel(long).

Returns:

The TextView that showing total time label.

protected void onSetDurationLabel(long totalTimeMs)

Called to update total time label. Default implementation updates the TextView PlaybackTransportRowPresenter.ViewHolder.getDurationView(). Subclass might override.

Parameters:

totalTimeMs: Total duration of the media in milliseconds.

public final TextView getCurrentPositionView()

Returns the TextView that showing current position label. This method might be used in PlaybackTransportRowPresenter.ViewHolder.onSetCurrentPositionLabel(long).

Returns:

The TextView that showing current position label.

protected void onSetCurrentPositionLabel(long currentTimeMs)

Called to update current time label. Default implementation updates the TextView PlaybackTransportRowPresenter.ViewHolder.getCurrentPositionView(). Subclass might override.

Parameters:

currentTimeMs: Current playback position in milliseconds.