How to get the step value selected in android-comboseekbar-master

后端 未结 2 1199
广开言路
广开言路 2021-01-19 04:49

I created a comboseekbar using the library android-comboseekbar-master. And i implemented the xml and code



        
2条回答
  •  遥遥无期
    2021-01-19 05:13

    ComboSeekBar extends Seekbar, so I think something like this should works:

    mSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
        @Override
        public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
            // progress is your value
        }
        @Override
        public void onStartTrackingTouch(SeekBar p_seekBar) {}
        @Override
        public void onStopTrackingTouch(SeekBar p_seekBar) {}
    });
    

提交回复
热议问题