Closed saffull closed 6 years ago
You can change bar value programatically using
rangeSeekbar.setMinStartValue(float minValue).setMaxStartValue(float maxValue).apply();
thnks! @syedowaisali
@syedowaisali that does not work for me. It just puts the start and end at the same position.
Hello @bgenchel. I use this example in my code, and work:
CrystalRangeSeekbar rangeSeekbar = (CrystalRangeSeekbar) findViewById(R.id.range); rangeSeekbar.setMinValue(1920); rangeSeekbar.setMaxValue(2016); rangeSeekbar.setMinStartValue(min).setMaxStartValue(max).apply();
Make sure to set .apply() for see changes.
@imarenco yup, apply is key, but just for other people that happen upon this issue: even with apply(), I did not see the behavior that I wanted. It would push both to only one value or both to the front. Weird stuff.
It was only after I switched to version 1.1.3 of the library did I get any combination of these commands to work.
there is a new problem #33 in 1.1.3
It doesn't work if the values are near to the top
Any kind of method is there to change the seek the position of the left thumb and the right thumb but also the same not to change the min value and max value for left and right thumb respectively. The purpose is that already having left and right seek position but at the same time don't want to change the min value and max value of seek bar.
fixed in upcoming version.
Hi, rangeSeekbar.setMaxStartValue(20) is working fine.But there is failure in minstartvalue(), when i tried to set rangeSeekbar.setMaxStartValue(6) but it setting to 12.please reply me as fast as possible. Thanks
Hello,
Any update about @sanjeevcharan issue, i facing same issue, i set the minValue to 14, but when i try to get the minValue it gives me 4
hello, how can i reset the min value and max value in seekbar, i tried .setValue, but is there any other way..?