Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jul 29, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

pls help

Original issue reported on code.google.com by [email protected] on 24 Sep 2014 at 5:32

@GoogleCodeExporter
Copy link
Contributor Author

any success??

Original comment by [email protected] on 12 Nov 2014 at 8:41

@GoogleCodeExporter
Copy link
Contributor Author

    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 [email protected] on 13 Nov 2014 at 4:58

@GoogleCodeExporter
Copy link
Contributor Author

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

Original comment by [email protected] on 28 Nov 2014 at 11:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant