android.widget.SeekBar.removeCallbacks()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中android.widget.SeekBar.removeCallbacks()方法的一些代码示例,展示了SeekBar.removeCallbacks()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SeekBar.removeCallbacks()方法的具体详情如下:
包路径:android.widget.SeekBar
类名称:SeekBar
方法名:removeCallbacks

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);

相关文章

SeekBar类方法