piyushgupta1 / range-seek-bar

Automatically exported from code.google.com/p/range-seek-bar
0 stars 0 forks source link

is this possible to change progress interval to 500,1000,1500 instead of 1,2,3 in range seekbar..? #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
pls help

Original issue reported on code.google.com by radheshr...@gmail.com on 24 Sep 2014 at 5:32

GoogleCodeExporter commented 8 years ago
any success??

Original comment by tahir90....@gmail.com on 12 Nov 2014 at 8:41

GoogleCodeExporter commented 8 years ago
    int startValue = 1000;
    int endValue = 100000;
    final int factor = 500;
    RangeSeekBar<Integer> seekBar = new RangeSeekBar<Integer>(startValue/factor, endValue/factor, this);
    seekBar.setOnRangeSeekBarChangeListener(new RangeSeekBar.OnRangeSeekBarChangeListener<Integer>() {
        @Override
        public void onRangeSeekBarValuesChanged(RangeSeekBar<?> bar, Integer minValue, Integer maxValue) {
            minValue = minValue*factor
            maxValue *= factor;
            value.setText(minValue + " : " + maxValue);
        }
    });

Original comment by radheshr...@gmail.com on 13 Nov 2014 at 4:58

GoogleCodeExporter commented 8 years ago
how to set progress interval from start value 1000 to 10000 int factor 100 
after that int factor 500..any idea?

Original comment by radheshr...@gmail.com on 28 Nov 2014 at 11:01