@SeekBarProgressChange(R.id.sb) public void onSeekBarProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { if (fromUser) { final int page = progress + 1; final ZLTextView view = fbreaderApp.getTextView(); if (page == 1) view.gotoHome(); view.gotoPage(page); fbreaderApp.getViewWidget().reset(); fbreaderApp.getViewWidget().repaint(); } }
@SeekBarProgressChange(R.id.quiet_mic_seekBar) void quietMicChange(SeekBar seekBar, int progress, boolean fromUser) { if (fromUser) { dataSender.sendLowMic(progress); saveValues(); } }
@SeekBarProgressChange(R.id.quiet_volume_seekBar) void quietVolumeChange(SeekBar seekBar, int progress, boolean fromUser) { if (fromUser) { dataSender.sendLowVolume(progress); dataSender.sendHighVolume(noisyVolume.getProgress()); saveValues(); } }
@SeekBarProgressChange(R.id.noisy_mic_seekBar) void noisyMicChange(SeekBar seekBar, int progress, boolean fromUser) { if (fromUser) { dataSender.sendHighMic(progress); saveValues(); } }
@SeekBarProgressChange(R.id.noisy_volume_seekBar) void noisyVolumeChange(SeekBar seekBar, int progress, boolean fromUser) { if (fromUser) { dataSender.sendHighVolume(progress); dataSender.sendLowVolume(quietVolume.getProgress()); saveValues(); } }
@SeekBarProgressChange({R.id.rangeSeek, R.id.timeSeek}) void onProgressChangeOnSeekBar(SeekBar seekBar, int progress, boolean fromUser) { if(seekBar == rangeSeek){ range.setText((progress + 10) + " m"); drawCircle(); }else if(seekBar == timeSeek){ time.setText((timeSeek.getProgress() + 2) + " min"); } }
@SeekBarProgressChange(R.id.seek_bar) void onSeekBarProgress(){ mTime.setText(String.format(mVideoTime, Utils.videoTimeFormat(mSeekBar.getProgress()) , Utils.videoTimeFormat(mPlayer.getDuration()))); }