syedowaisali / crystal-range-seekbar

538 stars 170 forks source link

How to set setProgress for Min and Max value in progress bar? #51

Closed kjanagiram closed 6 years ago

kjanagiram commented 7 years ago

I am using seekbar with two side thumb. I am changing min and max value and viewing result in another activity. Once I returned to that seekbar activity I want to show the last selected min and max value in seekbar. How can I achieve this one? I unable to find setProgress method for Min and Max value respectively.

rohitshampur commented 7 years ago

save the min, max value and set the max and min value when you return to the seekbar activity like below

mCrystalRangeSeekBar.setMinStartValue(min);
mCrystalRangeSeekBar.setMaxStartValue(max);
mCrystalRangeSeekBar.apply();//this is important
awfatech commented 6 years ago

@rohitshampur Please use this to set current position. crySeekBar.setMinStartValue(val); crySeekBar.apply();//this is important