本文整理了Java中android.widget.SeekBar.incrementProgressBy()
方法的一些代码示例,展示了SeekBar.incrementProgressBy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SeekBar.incrementProgressBy()
方法的具体详情如下:
包路径:android.widget.SeekBar
类名称:SeekBar
方法名:incrementProgressBy
暂无
代码示例来源:origin: PrivacyApps/document-viewer
@Override
public void onClick(final View v) {
if (seekBar != null) {
final int delta = ((Integer) v.getTag()).intValue();
seekBar.incrementProgressBy(delta);
}
}
代码示例来源:origin: stackoverflow.com
SeekBar seekBar = (SeekBar)layout.findViewById(R.id.seekbar);
seekBar.setProgress(0);
seekBar.incrementProgressBy(10);
seekBar.setMax(200);
代码示例来源:origin: goo4it/MediaPlayer
@Override
public void handleMessage(Message msg) {
if (msg == null) return;
switch (msg.what) {
case 0x111:
btn_play.setImageResource(R.drawable.play_btn_play_selector);
break;
case 0x112:
btn_play.setImageResource(R.drawable.play_btn_pause_selector);
break;
case 0x113:
if (current_progress >= MAX_PROGRESS) {
current_progress = 0;
}
current_progress += 100;
seekBar.incrementProgressBy(100);
if (mpv.isPlay()) handler.sendEmptyMessageDelayed(0x113, 100);
default:
break;
}
}
};
代码示例来源:origin: PrivacyApps/document-viewer
@Override
public void handleMessage(final Message msg) {
if (started && seekBar != null) {
count++;
int delta = msg.what;
seekBar.incrementProgressBy(delta);
if (count % (1000 / DELAY) == 0) {
delta = NEXT_MULT * delta;
}
sendMessageDelayed(obtainMessage(delta), DELAY);
}
}
代码示例来源:origin: denzilferreira/aware-client
seekBar.incrementProgressBy(step_size);
内容来源于网络,如有侵权,请联系作者删除!