PlaybackRowPresenter.java revision afd999aba1b74d876ea2620775ba9157e6df7102
1package android.support.v17.leanback.widget;
2
3import 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 */
10public 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 {
17        public ViewHolder(View view) {
18            super(view);
19        }
20    }
21
22    /**
23     * Provides hook to update the UI when the view reappears.
24     */
25    public void onReappear(RowPresenter.ViewHolder rowViewHolder) {
26    }
27}
28