1 package android.support.v17.leanback.widget; 2 3 import android.view.View; 4 5 /** 6 * Subclass of {@link RowPresenter} that can define the desired behavior when the view 7 * reappears. This is presently used by {@link PlaybackControlsRowPresenter} to update the UI 8 * after we show/hide the controls view. 9 */ 10 public abstract class PlaybackRowPresenter extends RowPresenter { 11 12 /** 13 * This container is used for trapping click events and passing them to the 14 * playback controls. 15 */ 16 public static class ViewHolder extends RowPresenter.ViewHolder { ViewHolder(View view)17 public ViewHolder(View view) { 18 super(view); 19 } 20 } 21 22 /** 23 * Provides hook to update the UI when the view reappears. 24 */ onReappear(RowPresenter.ViewHolder rowViewHolder)25 public void onReappear(RowPresenter.ViewHolder rowViewHolder) { 26 } 27 } 28