本文整理汇总了Java中android.support.v17.leanback.widget.PlaybackControlsRow.ThumbsDownAction方法的典型用法代码示例。如果您正苦于以下问题:Java PlaybackControlsRow.ThumbsDownAction方法的具体用法?Java PlaybackControlsRow.ThumbsDownAction怎么用?Java PlaybackControlsRow.ThumbsDownAction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.support.v17.leanback.widget.PlaybackControlsRow
的用法示例。
在下文中一共展示了PlaybackControlsRow.ThumbsDownAction方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: VideoPlayerGlue
import android.support.v17.leanback.widget.PlaybackControlsRow; //导入方法依赖的package包/类
public VideoPlayerGlue(
Context context,
LeanbackPlayerAdapter playerAdapter,
OnActionClickedListener actionListener) {
super(context, playerAdapter);
mActionListener = actionListener;
mSkipPreviousAction = new PlaybackControlsRow.SkipPreviousAction(context);
mSkipNextAction = new PlaybackControlsRow.SkipNextAction(context);
mFastForwardAction = new PlaybackControlsRow.FastForwardAction(context);
mRewindAction = new PlaybackControlsRow.RewindAction(context);
mThumbsUpAction = new PlaybackControlsRow.ThumbsUpAction(context);
mThumbsUpAction.setIndex(PlaybackControlsRow.ThumbsUpAction.INDEX_OUTLINE);
mThumbsDownAction = new PlaybackControlsRow.ThumbsDownAction(context);
mThumbsDownAction.setIndex(PlaybackControlsRow.ThumbsDownAction.INDEX_OUTLINE);
mRepeatAction = new PlaybackControlsRow.RepeatAction(context);
}
示例2: PlaybackControlHelper
import android.support.v17.leanback.widget.PlaybackControlsRow; //导入方法依赖的package包/类
public PlaybackControlHelper(Context context, PlaybackOverlayFragment fragment, Video video) {
super(context, fragment, SEEK_SPEEDS);
mFragment = fragment;
mVideo = video;
mMediaController = mFragment.getActivity().getMediaController();
mTransportControls = mMediaController.getTransportControls();
mThumbsUpAction = new PlaybackControlsRow.ThumbsUpAction(context);
mThumbsUpAction.setIndex(PlaybackControlsRow.ThumbsUpAction.OUTLINE);
mThumbsDownAction = new PlaybackControlsRow.ThumbsDownAction(context);
mThumbsDownAction.setIndex(PlaybackControlsRow.ThumbsDownAction.OUTLINE);
mRepeatAction = new PlaybackControlsRow.RepeatAction(context);
mPipAction = new PlaybackControlsRow.PictureInPictureAction(context);
}
示例3: VideoMediaPlayerGlue
import android.support.v17.leanback.widget.PlaybackControlsRow; //导入方法依赖的package包/类
public VideoMediaPlayerGlue(Activity context, T impl) {
super(context, impl);
mClosedCaptioningAction = new PlaybackControlsRow.ClosedCaptioningAction(context);
mThumbsUpAction = new PlaybackControlsRow.ThumbsUpAction(context);
mThumbsUpAction.setIndex(PlaybackControlsRow.ThumbsUpAction.OUTLINE);
mThumbsDownAction = new PlaybackControlsRow.ThumbsDownAction(context);
mThumbsDownAction.setIndex(PlaybackControlsRow.ThumbsDownAction.OUTLINE);
mRepeatAction = new PlaybackControlsRow.RepeatAction(context);
mPipAction = new PlaybackControlsRow.PictureInPictureAction(context);
}
示例4: MediaPlayerGlue
import android.support.v17.leanback.widget.PlaybackControlsRow; //导入方法依赖的package包/类
public MediaPlayerGlue(Context context) {
super(context, new int[]{1});
mShuffleAction = new PlaybackControlsRow.ShuffleAction(getContext());
mRepeatAction = new PlaybackControlsRow.RepeatAction(getContext());
mThumbsDownAction = new PlaybackControlsRow.ThumbsDownAction(getContext());
mThumbsUpAction = new PlaybackControlsRow.ThumbsUpAction(getContext());
mThumbsDownAction.setIndex(PlaybackControlsRow.ThumbsAction.OUTLINE);
mThumbsUpAction.setIndex(PlaybackControlsRow.ThumbsAction.OUTLINE);
}