本文整理汇总了Java中com.android.tedcoder.wkvideoplayer.R类的典型用法代码示例。如果您正苦于以下问题:Java R类的具体用法?Java R怎么用?Java R使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
R类属于com.android.tedcoder.wkvideoplayer包,在下文中一共展示了R类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:17,代码来源:DeviceAdapter.java
示例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<>();
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:27,代码来源:SuperVideoPlayer.java
示例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<>();
}
开发者ID:pczhu,项目名称:AndroidVideoPlayer-master,代码行数:21,代码来源:SuperVideoPlayer.java
示例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);
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:8,代码来源:EasySwitcher.java
示例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;
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:15,代码来源:EasySwitcher.java
示例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();
}
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:14,代码来源:MediaController.java
示例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);
}
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:10,代码来源:MediaController.java
示例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);
}
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:10,代码来源:MediaController.java
示例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();
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:14,代码来源:MediaController.java
示例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);
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:12,代码来源:SuperVideoPlayer.java
示例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;
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:15,代码来源:EasySwitcher.java
示例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();
}
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:11,代码来源:MediaController.java
示例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();
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:14,代码来源:MediaController.java
示例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();
}
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:11,代码来源:SuperVideoPlayer.java
示例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);
}
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:14,代码来源:SuperVideoPlayer.java
示例16: showDLNAController
import com.android.tedcoder.wkvideoplayer.R; //导入依赖的package包/类
/**
* 显示推送视频播放控制页面
*/
private void showDLNAController() {
String name = DLNAContainer.getInstance().getSelectedDevice().getFriendlyName();
String title = mContext.getResources().getString(R.string.dlna_device_title, TextUtils.isEmpty(name) ? "您的电视" : name);
mDLNARootLayout.setVisibility(VISIBLE);
((TextView) mDLNARootLayout.findViewById(R.id.txt_dlna_title)).setText(title);
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:10,代码来源:SuperVideoPlayer.java
注:本文中的com.android.tedcoder.wkvideoplayer.R类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论