本文整理了Java中android.widget.SeekBar.setOnTouchListener()
方法的一些代码示例,展示了SeekBar.setOnTouchListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SeekBar.setOnTouchListener()
方法的具体详情如下:
包路径:android.widget.SeekBar
类名称:SeekBar
方法名:setOnTouchListener
暂无
代码示例来源:origin: CarGuo/GSYVideoPlayer
/**
* 小窗口
**/
@Override
protected void setSmallVideoTextureView() {
if (mProgressBar != null) {
mProgressBar.setOnTouchListener(null);
mProgressBar.setVisibility(INVISIBLE);
}
if (mFullscreenButton != null) {
mFullscreenButton.setOnTouchListener(null);
mFullscreenButton.setVisibility(INVISIBLE);
}
if (mCurrentTimeTextView != null) {
mCurrentTimeTextView.setVisibility(INVISIBLE);
}
if (mTextureViewContainer != null) {
mTextureViewContainer.setOnClickListener(null);
}
if (mSmallClose != null) {
mSmallClose.setVisibility(VISIBLE);
mSmallClose.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
hideSmallVideo();
releaseVideos();
}
});
}
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
mProgressBar.setOnTouchListener(this);
代码示例来源:origin: palaima/DebugDrawer
delaySeekBar = view.findViewById(R.id.debug_network_delay);
delaySeekBar.setSaveEnabled(false);
delaySeekBar.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
errorSeekBar = view.findViewById(R.id.debug_network_error);
errorSeekBar.setSaveEnabled(false);
errorSeekBar.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
代码示例来源:origin: bifan-wei/HwTxtReader
protected void setSeekBarListener() {
mMenuHolder.mSeekBar.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
代码示例来源:origin: ihrupin/samples
private void initViews() {
buttonPlayStop = (Button) findViewById(R.id.ButtonPlayStop);
buttonPlayStop.setOnClickListener(new OnClickListener() {@Override public void onClick(View v) {buttonClick();}});
mediaPlayer = MediaPlayer.create(this, R.raw.testsong_20_sec);
seekBar = (SeekBar) findViewById(R.id.SeekBar01);
seekBar.setMax(mediaPlayer.getDuration());
seekBar.setOnTouchListener(new OnTouchListener() {@Override public boolean onTouch(View v, MotionEvent event) {
seekChange(v);
return false; }
});
}
代码示例来源:origin: stackoverflow.com
seekBar.setOnTouchListener(seekBarTouchListener);
代码示例来源:origin: stackoverflow.com
seekBarDuration.setClickable(false);
seekBarDuration.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
代码示例来源:origin: 80945540/LCRapidDevelop
protected void init(Context context) {
View.inflate(context, getLayoutId(), this);
startButton = (ImageView) findViewById(R.id.start);
fullscreenButton = (ImageView) findViewById(R.id.fullscreen);
progressBar = (SeekBar) findViewById(R.id.progress);
currentTimeTextView = (TextView) findViewById(R.id.current);
totalTimeTextView = (TextView) findViewById(R.id.total);
bottomContainer = (ViewGroup) findViewById(R.id.layout_bottom);
textureViewContainer = (RelativeLayout) findViewById(R.id.surface_container);
topContainer = (ViewGroup) findViewById(R.id.layout_top);
startButton.setOnClickListener(this);
fullscreenButton.setOnClickListener(this);
progressBar.setOnSeekBarChangeListener(this);
bottomContainer.setOnClickListener(this);
textureViewContainer.setOnClickListener(this);
progressBar.setOnTouchListener(this);
textureViewContainer.setOnTouchListener(this);
mScreenWidth = getContext().getResources().getDisplayMetrics().widthPixels;
mScreenHeight = getContext().getResources().getDisplayMetrics().heightPixels;
mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE);
}
代码示例来源:origin: smuyyh/SprintNBA
protected void init(Context context) {
View.inflate(context, getLayoutId(), this);
startButton = (ImageView) findViewById(R.id.start);
fullscreenButton = (ImageView) findViewById(R.id.fullscreen);
progressBar = (SeekBar) findViewById(R.id.progress);
currentTimeTextView = (TextView) findViewById(R.id.current);
totalTimeTextView = (TextView) findViewById(R.id.total);
bottomContainer = (ViewGroup) findViewById(R.id.layout_bottom);
textureViewContainer = (RelativeLayout) findViewById(R.id.surface_container);
topContainer = (ViewGroup) findViewById(R.id.layout_top);
startButton.setOnClickListener(this);
fullscreenButton.setOnClickListener(this);
progressBar.setOnSeekBarChangeListener(this);
bottomContainer.setOnClickListener(this);
textureViewContainer.setOnClickListener(this);
progressBar.setOnTouchListener(this);
textureViewContainer.setOnTouchListener(this);
mScreenWidth = getContext().getResources().getDisplayMetrics().widthPixels;
mScreenHeight = getContext().getResources().getDisplayMetrics().heightPixels;
mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE);
}
代码示例来源:origin: 80945540/FreeBook
protected void init(Context context) {
View.inflate(context, getLayoutId(), this);
startButton = (ImageView) findViewById(R.id.start);
fullscreenButton = (ImageView) findViewById(R.id.fullscreen);
progressBar = (SeekBar) findViewById(R.id.progress);
currentTimeTextView = (TextView) findViewById(R.id.current);
totalTimeTextView = (TextView) findViewById(R.id.total);
bottomContainer = (ViewGroup) findViewById(R.id.layout_bottom);
textureViewContainer = (RelativeLayout) findViewById(R.id.surface_container);
topContainer = (ViewGroup) findViewById(R.id.layout_top);
startButton.setOnClickListener(this);
fullscreenButton.setOnClickListener(this);
progressBar.setOnSeekBarChangeListener(this);
bottomContainer.setOnClickListener(this);
textureViewContainer.setOnClickListener(this);
progressBar.setOnTouchListener(this);
textureViewContainer.setOnTouchListener(this);
mScreenWidth = getContext().getResources().getDisplayMetrics().widthPixels;
mScreenHeight = getContext().getResources().getDisplayMetrics().heightPixels;
mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE);
}
代码示例来源:origin: JasonChow1989/JieCaoVideoPlayer-develop
protected void init(Context context) {
View.inflate(context, getLayoutId(), this);
startButton = (ImageView) findViewById(R.id.start);
fullscreenButton = (ImageView) findViewById(R.id.fullscreen);
progressBar = (SeekBar) findViewById(R.id.progress);
currentTimeTextView = (TextView) findViewById(R.id.current);
totalTimeTextView = (TextView) findViewById(R.id.total);
bottomContainer = (ViewGroup) findViewById(R.id.layout_bottom);
textureViewContainer = (RelativeLayout) findViewById(R.id.surface_container);
topContainer = (ViewGroup) findViewById(R.id.layout_top);
startButton.setOnClickListener(this);
fullscreenButton.setOnClickListener(this);
progressBar.setOnSeekBarChangeListener(this);
bottomContainer.setOnClickListener(this);
textureViewContainer.setOnClickListener(this);
progressBar.setOnTouchListener(this);
textureViewContainer.setOnTouchListener(this);
mScreenWidth = getContext().getResources().getDisplayMetrics().widthPixels;
mScreenHeight = getContext().getResources().getDisplayMetrics().heightPixels;
mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE);
}
代码示例来源:origin: stackoverflow.com
seekBarProgress.setOnTouchListener(this);
代码示例来源:origin: stackoverflow.com
seekBarProgress.setOnTouchListener(this);
代码示例来源:origin: stackoverflow.com
seekBarProgress = (SeekBar) findViewById(R.id.SeekBarTestPlay);
seekBarProgress.setMax(99);
seekBarProgress.setOnTouchListener(this);
代码示例来源:origin: qiushi123/VideoDemoQcl
rlParent.setOnClickListener(this);
ivBack.setOnClickListener(this);
skProgress.setOnTouchListener(this);
if (speScalType != null) {
ivThumb.setScaleType(speScalType);
代码示例来源:origin: stackoverflow.com
seekBar.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
代码示例来源:origin: stackoverflow.com
seekBar.setOnTouchListener(this);
代码示例来源:origin: stackoverflow.com
seekBar.setOnTouchListener(this);
内容来源于网络,如有侵权,请联系作者删除!