本文整理了Java中android.widget.SeekBar.getProgress()
方法的一些代码示例,展示了SeekBar.getProgress()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SeekBar.getProgress()
方法的具体详情如下:
包路径:android.widget.SeekBar
类名称:SeekBar
方法名:getProgress
暂无
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
tvY.setText(String.valueOf(seekBarY.getProgress()));
setData(seekBarX.getProgress(), seekBarY.getProgress());
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
tvY.setText(String.valueOf(seekBarY.getProgress()));
setData(seekBarX.getProgress(), seekBarY.getProgress());
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
tvY.setText(String.valueOf(seekBarY.getProgress()));
setData(seekBarX.getProgress(), seekBarY.getProgress());
// redraw
chart.invalidate();
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
tvY.setText(String.valueOf(seekBarY.getProgress()));
setData(seekBarX.getProgress(), seekBarY.getProgress());
// redraw
chart.invalidate();
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
tvY.setText(String.valueOf(seekBarY.getProgress()));
setData(seekBarX.getProgress(), seekBarY.getProgress());
// redraw
chart.invalidate();
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
tvY.setText(String.valueOf(seekBarY.getProgress()));
setData(seekBarX.getProgress(), seekBarY.getProgress());
chart.invalidate();
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
tvY.setText(String.valueOf(seekBarY.getProgress()));
setData(seekBarX.getProgress(), seekBarY.getProgress());
// redraw
chart.invalidate();
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
tvY.setText(String.valueOf(seekBarY.getProgress()));
setData(seekBarX.getProgress(), seekBarY.getProgress());
chart.setFitBars(true);
chart.invalidate();
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
setData(seekBarX.getProgress());
chart.invalidate();
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
setData(seekBarX.getProgress(), 50);
// redraw
chart.invalidate();
}
代码示例来源:origin: TeamNewPipe/NewPipe
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
if (player != null) player.seekTo(seekBar.getProgress());
seekDisplay.setVisibility(View.GONE);
seeking = false;
}
代码示例来源:origin: TeamNewPipe/NewPipe
private double getCurrentTempo() {
return tempoSlider == null ? tempo : strategy.valueOf(
tempoSlider.getProgress());
}
代码示例来源:origin: TeamNewPipe/NewPipe
private double getCurrentPitch() {
return pitchSlider == null ? pitch : strategy.valueOf(
pitchSlider.getProgress());
}
代码示例来源:origin: smuyyh/BookReader
@OnClick(R.id.tvFontsizePlus)
public void fontsizePlus() {
calcFontSize(seekbarFontSize.getProgress() + 1);
}
代码示例来源:origin: seven332/EhViewer
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
mTrackingTouch = false;
if (seekBar.getProgress() != mProgress) {
syncProgress(seekBar);
}
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
int count = seekBarValues.getProgress() + 1000;
tvCount.setText(String.valueOf(count));
chart.resetTracking();
setData(count, 500f);
// redraw
chart.invalidate();
}
代码示例来源:origin: commonsguy/cw-omnibus
public void notifyMe(View v) {
Intent i=new Intent(this, AlarmReceiver.class)
.putExtra(AlarmReceiver.EXTRA_TYPE, type.getSelectedItemPosition());
PendingIntent pi=PendingIntent.getBroadcast(this, 0, i,
PendingIntent.FLAG_UPDATE_CURRENT);
AlarmManager mgr=(AlarmManager)getSystemService(ALARM_SERVICE);
mgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
SystemClock.elapsedRealtime()+(1000*delay.getProgress()),
pi);
}
}
代码示例来源:origin: pili-engineering/PLDroidPlayer
public void onStopTrackingTouch(SeekBar bar) {
if (!mInstantSeeking)
mPlayer.seekTo(mDuration * bar.getProgress() / 1000);
show(sDefaultTimeout);
mHandler.removeMessages(SHOW_PROGRESS);
mAM.setStreamMute(AudioManager.STREAM_MUSIC, false);
mDragging = false;
mHandler.sendEmptyMessageDelayed(SHOW_PROGRESS, 1000);
}
};
代码示例来源:origin: TeamNewPipe/NewPipe
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
if (DEBUG) Log.d(TAG, "onStopTrackingTouch() called with: seekBar = [" + seekBar + "]");
seekTo(seekBar.getProgress());
if (wasPlaying || simpleExoPlayer.getDuration() == seekBar.getProgress()) simpleExoPlayer.setPlayWhenReady(true);
playbackCurrentTime.setText(getTimeString(seekBar.getProgress()));
animateView(currentDisplaySeek, AnimationUtils.Type.SCALE_AND_ALPHA, false, 200);
if (getCurrentState() == STATE_PAUSED_SEEK) changeState(STATE_BUFFERING);
if (!isProgressLoopRunning()) startProgressLoop();
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
@Override
public void onSeekComplete() {
super.onSeekComplete();
int time = mProgressBar.getProgress() * getDuration() / 100;
//如果已经初始化过的,直接seek到对于位置
if (mHadPlay && getDanmakuView() != null && getDanmakuView().isPrepared()) {
resolveDanmakuSeek(this, time);
} else if (mHadPlay && getDanmakuView() != null && !getDanmakuView().isPrepared()) {
//如果没有初始化过的,记录位置等待
setDanmakuStartSeekPosition(time);
}
}
内容来源于网络,如有侵权,请联系作者删除!