本文整理了Java中android.widget.SeekBar.removeCallbacks()
方法的一些代码示例,展示了SeekBar.removeCallbacks()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SeekBar.removeCallbacks()
方法的具体详情如下:
包路径:android.widget.SeekBar
类名称:SeekBar
方法名:removeCallbacks
暂无
代码示例来源:origin: naman14/Timber
mProgress.setMax((int) MusicPlayer.duration());
if (mUpdateProgress != null) {
mProgress.removeCallbacks(mUpdateProgress);
代码示例来源:origin: xbmc/Kore
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
// Stop the seekbar from updating
seekBar.removeCallbacks(seekBarUpdater);
}
代码示例来源:origin: xbmc/Kore
/**
* Sets the play speed for the progress indicator
* @param speed set to 0 to stop updating the progress indicator.
*/
public void setSpeed(int speed) {
if( speed == this.speed )
return;
this.speed = speed;
this.progressIncrement = speed * (SEEK_BAR_UPDATE_INTERVAL/1000);
seekBar.removeCallbacks(seekBarUpdater);
if (speed > 0)
seekBar.postDelayed(seekBarUpdater, SEEK_BAR_UPDATE_INTERVAL);
}
代码示例来源:origin: xbmc/Kore
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
seekBar.removeCallbacks(seekBarUpdater);
unbinder.unbind();
onProgressChangeListener = null;
}
代码示例来源:origin: xbmc/Kore
@Override
public void run() {
if (seekBar == null) // prevent NPE when Butterknife unbinds the view while there was still a runnable pending
return;
if ((maxProgress == 0) || (progress >= maxProgress)) {
seekBar.removeCallbacks(this);
return;
}
progress += progressIncrement;
setProgress(progress);
seekBar.postDelayed(this, SEEK_BAR_UPDATE_INTERVAL);
}
};
代码示例来源:origin: rohanoid5/Muzesto
mProgress.setMax((int) MusicPlayer.duration());
if (mUpdateProgress != null) {
mProgress.removeCallbacks(mUpdateProgress);
代码示例来源:origin: brainysoon/cyberCar
mProgress.setMax((int) MusicPlayer.duration());
if (mUpdateProgress != null) {
mProgress.removeCallbacks(mUpdateProgress);
内容来源于网络,如有侵权,请联系作者删除!