Java 类org.androidannotations.annotations.SeekBarProgressChange 实例源码

项目:FBreader    文件:ProgressItemView.java   
@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();
    }
}
项目:autoamplifier    文件:MainActivity.java   
@SeekBarProgressChange(R.id.quiet_mic_seekBar)
void quietMicChange(SeekBar seekBar, int progress, boolean fromUser) {
    if (fromUser) {
        dataSender.sendLowMic(progress);
        saveValues();
    }
}
项目:autoamplifier    文件:MainActivity.java   
@SeekBarProgressChange(R.id.quiet_volume_seekBar)
void quietVolumeChange(SeekBar seekBar, int progress, boolean fromUser) {
    if (fromUser) {
        dataSender.sendLowVolume(progress);
        dataSender.sendHighVolume(noisyVolume.getProgress());
        saveValues();
    }
}
项目:autoamplifier    文件:MainActivity.java   
@SeekBarProgressChange(R.id.noisy_mic_seekBar)
void noisyMicChange(SeekBar seekBar, int progress, boolean fromUser) {
    if (fromUser) {
        dataSender.sendHighMic(progress);
        saveValues();
    }
}
项目:autoamplifier    文件:MainActivity.java   
@SeekBarProgressChange(R.id.noisy_volume_seekBar)
void noisyVolumeChange(SeekBar seekBar, int progress, boolean fromUser) {
    if (fromUser) {
        dataSender.sendHighVolume(progress);
        dataSender.sendLowVolume(quietVolume.getProgress());
        saveValues();
    }
}
项目:-abase-reader    文件:ProgressItemView.java   
@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();
    }
}
项目:Check-Me-In    文件:AddConfigActivity.java   
@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");
    }
}
项目:luxunPro    文件:VideoView.java   
@SeekBarProgressChange(R.id.seek_bar)
void onSeekBarProgress(){
    mTime.setText(String.format(mVideoTime, Utils.videoTimeFormat(mSeekBar.getProgress())
            , Utils.videoTimeFormat(mPlayer.getDuration())));
}