Closed aashirjaved-zz closed 7 years ago
final CrystalRangeSeekbar rangeSeekbar = (CrystalRangeSeekbar) findViewById(R.id.seekbar);
rangeSeekbar.setMinStartValue(20).setMaxStartValue(80).apply();
I also have same issue & I applied below code
ageRange =(CrystalRangeSeekbar)rootView.findViewById(R.id.rangeSeekbarAge);
ageRange.setMinValue(1);//this work
ageRange.setMaxValue(100);//this work
ageRange.setMinStartValue(20).setMaxStartValue(80).apply();//this not work
ageRange.apply();
setMinStartValue() & setMaxStartValue() does not show any effect nor error. Please tell how i setMinStart value of thumb.
Still not working, Will you update it?
not working @syedowaisali will you update it.
Hey, I've configured range seek bar in my app, It is working fine, I am able to set default minimum and maximum values to the seek bar as well. Also it is taking the new minimum and max values (i.e. range, dynamically) But I want to set this value (new min/max value) to the activity so that it should indicate the last value that I've selected.
Hi @abhishek158,
If you want to set initial value to seek bar. You should write this code: seekbar.setMinStartValue(50); seekbar.apply();
The logic is save minUserSelected value somewhere and do seekbar.setMinStartValue(minUserSelected).apply();
seekbar.apply();
rangeSeekbar.setMinStartValue(min) ;
rangeSeekbar.setMaxStartValue(max);
rangeSeekbar.apply();
I want to set the thumb to the last saved value is that possible?