本文整理汇总了Java中com.android.tedcoder.wkvideoplayer.R类的典型用法代码示例。如果您正苦于以下问题:Java R类的具体用法?Java R怎么用?Java R使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
R类属于com.android.tedcoder.wkvideoplayer包,在下文中一共展示了R类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
if (convertView == null) {
convertView = View.inflate(mContext,R.layout.item_lv_main, null);
holder = new ViewHolder();
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
holder.tv_name_item = (TextView) convertView
.findViewById(R.id.tv_name_item);
holder.tv_name_item.setText(mSuperVideoPlayer.getDevices().get(position)
.getFriendlyName());
return convertView;
}
示例2: initView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
private void initView(Context context) {
mContext = context;
View.inflate(context, R.layout.super_vodeo_player_layout, this);
mSuperVideoView = (SuperVideoView) findViewById(R.id.video_view);
mMediaController = (MediaController) findViewById(R.id.controller);
mProgressBarView = findViewById(R.id.progressbar);
mCloseBtnView = findViewById(R.id.video_close_view);
mTvBtnView = findViewById(R.id.video_share_tv_view);
mDLNARootLayout = findViewById(R.id.rel_dlna_root_layout);
mMediaController.setMediaControl(mMediaControl);
mSuperVideoView.setOnTouchListener(mOnTouchVideoListener);
setDLNAButton(false);
setCloseButton(false);
mDLNARootLayout.setVisibility(GONE);
showProgressView(false);
mDLNARootLayout.setOnClickListener(mOnClickListener);
mDLNARootLayout.findViewById(R.id.txt_dlna_exit).setOnClickListener(mOnClickListener);
mCloseBtnView.setOnClickListener(mOnClickListener);
mTvBtnView.setOnClickListener(mOnClickListener);
mProgressBarView.setOnClickListener(mOnClickListener);
mAllVideo = new ArrayList<>();
}
示例3: initView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
private void initView(Context context) {
mContext = context;
View.inflate(context, R.layout.super_vodeo_player_layout, this);
mSuperVideoView = (SuperVideoView) findViewById(R.id.video_view);
mMediaController = (MediaController) findViewById(R.id.controller);
mProgressBarView = findViewById(R.id.progressbar);
mCloseBtnView = findViewById(R.id.video_close_view);
mTvBtnView = findViewById(R.id.video_share_tv_view);
mMediaController.setMediaControl(mMediaControl);
mSuperVideoView.setOnTouchListener(mOnTouchVideoListener);
mCloseBtnView.setVisibility(INVISIBLE);
mTvBtnView.setVisibility(VISIBLE);
mCloseBtnView.setOnClickListener(mOnClickListener);
mTvBtnView.setOnClickListener(mOnClickListener);
mProgressBarView.setVisibility(VISIBLE);
mAllVideo = new ArrayList<>();
}
示例4: initBaseView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
private void initBaseView(){
View.inflate(mContext, R.layout.video_easy_switcher_layout, this);
mItemContainer = (LinearLayout)findViewById(R.id.switcher_item_container);
mSelectItemTxt = (TextView)findViewById(R.id.switcher_select);
setSelected(false);
mSelectItemTxt.setOnClickListener(mSelectItemOnClickListener);
}
示例5: getItemView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
private View getItemView(int position){
TextView textView = new TextView(mContext);
textView.setTextAppearance(mContext, R.style.switcher_item_text_style);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
DensityUtil.dip2px(mContext,40));
textView.setLayoutParams(layoutParams);
textView.setSelected(position == mDefaultSelection);
textView.setGravity(Gravity.CENTER);
textView.setText(mAllItemArray.get(position));
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12.0f);
textView.setOnClickListener(mItemOnClickListener);
textView.setTag(position);
return textView;
}
示例6: onClick
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
@Override
public void onClick(View view) {
if (view.getId() == R.id.pause) {
if(mOnplayBtnClickListener!=null) {
mOnplayBtnClickListener.onPlayBtnClick();
}
mMediaControl.onPlayTurn();
} else if (view.getId() == R.id.expand) {
mMediaControl.onPageTurn();
} else if (view.getId() == R.id.shrink) {
mMediaControl.onPageTurn();
}
}
示例7: setPlayState
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
public void setPlayState(PlayState playState) {
this.mPlayState = playState;
if(mOrietation == ORITATION_PORTAIT) {
mPlayImg.setImageResource(mPlayState.equals(PlayState.PLAY) ? R.drawable.sp_bofang : R.drawable.sp_zanting);
}else {
mPlayImg.setImageResource(mPlayState.equals(PlayState.PLAY) ? R.drawable.sp_bofang : R.drawable.sp_zanting);
}
}
示例8: refreshPlayBtnState
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
public void refreshPlayBtnState(int orietation) {
this.mOrietation = orietation;
if(orietation == ORITATION_PORTAIT) {
mPlayImg.setImageResource(mPlayState.equals(PlayState.PLAY) ? R.drawable.sp_bofang : R.drawable.sp_zanting);
}else {
mPlayImg.setImageResource(mPlayState.equals(PlayState.PLAY) ? R.drawable.sp_bofang : R.drawable.sp_zanting);
}
}
示例9: initView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
private void initView(Context context) {
View.inflate(context, R.layout.biz_video_media_controller, this);
mPlayImg = (ImageView) findViewById(R.id.pause);
mProgressSeekBar = (SeekBar) findViewById(R.id.media_controller_progress);
mVideoFormatSwitcher = (EasySwitcher) findViewById(R.id.video_format_switcher);
mTimeTxt = (TextView) findViewById(R.id.time);
mEndtimeTv = (TextView) findViewById(R.id.tv_endtime);
mExpandImg = (ImageView) findViewById(R.id.expand);
mShrinkImg = (ImageView) findViewById(R.id.shrink);
mMenuView = findViewById(R.id.view_menu);
mMenuViewPlaceHolder = findViewById(R.id.view_menu_placeholder);
initData();
}
示例10: initView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
private void initView(Context context) {
mContext = context;
View.inflate(context, R.layout.super_vodeo_player_layout, this);
mCoverIv = (ImageView) findViewById(R.id.iv_cover);
mSuperVideoView = (SuperVideoView) findViewById(R.id.video_view);
mMediaController = (MediaController) findViewById(R.id.controller);
mProgressBarView = findViewById(R.id.progressbar);
mMediaController.setMediaControl(mMediaControl);
bottom_seekbar = (SeekBar) findViewById(R.id.bottom_seekbar);
}
示例11: getItemView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
private View getItemView(int position){
TextView textView = new TextView(mContext);
textView.setTextAppearance(mContext, R.style.switcher_item_text_style);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
DensityUtil.dip2px(mContext,35));
textView.setLayoutParams(layoutParams);
textView.setSelected(position == mDefaultSelection);
textView.setGravity(Gravity.CENTER);
textView.setText(mAllItemArray.get(position));
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12.0f);
textView.setOnClickListener(mItemOnClickListener);
textView.setTag(position);
return textView;
}
示例12: onClick
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
@Override
public void onClick(View view) {
if (view.getId() == R.id.pause) {
mMediaControl.onPlayTurn();
} else if (view.getId() == R.id.expand) {
mMediaControl.onPageTurn();
} else if (view.getId() == R.id.shrink) {
mMediaControl.onPageTurn();
}
}
示例13: initView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
private void initView(Context context) {
View.inflate(context, R.layout.biz_video_media_controller, this);
mPlayImg = (ImageView) findViewById(R.id.pause);
mProgressSeekBar = (SeekBar) findViewById(R.id.media_controller_progress);
mVideoSrcSwitcher = (EasySwitcher) findViewById(R.id.video_src_switcher);
mVideoFormatSwitcher = (EasySwitcher) findViewById(R.id.video_format_switcher);
mTimeTxt = (TextView) findViewById(R.id.time);
mExpandImg = (ImageView) findViewById(R.id.expand);
mShrinkImg = (ImageView) findViewById(R.id.shrink);
mMenuView = findViewById(R.id.view_menu);
mMenuViewPlaceHolder = findViewById(R.id.view_menu_placeholder);
initData();
}
示例14: onClick
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
@Override
public void onClick(View view) {
if (view.getId() == R.id.video_close_view) {
mVideoPlayCallback.onCloseVideo();
} else if (view.getId() == R.id.video_share_tv_view) {
shareToTv();
} else if (view.getId() == R.id.txt_dlna_exit) {
goOnPlayAtLocal();
}
}
示例15: showProgressView
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
/**
* 显示loading圈
*
* @param isTransparentBg isTransparentBg
*/
private void showProgressView(Boolean isTransparentBg) {
mProgressBarView.setVisibility(VISIBLE);
if (!isTransparentBg) {
mProgressBarView.setBackgroundResource(android.R.color.black);
} else {
mProgressBarView.setBackgroundResource(android.R.color.transparent);
}
}