RangeSeekBar
RangeSeekBar copied to clipboard
How to set value to right/left seekbar programmatically when button pressed ...
Hi, I use VerticalSeekBar ( with range mode ) and set range ( e.g. 0 , 100000 ) ... I need at first the left/right thumb pointed to start and end of whole range bar (I handled that) , but when user changed the left/right value then pressed clear button , I could reset the seekbar programmatically , and also I need set initial value for left/right seekbar programmatically ... ( e.g. my range is between 0 and 100000 , and min value is 30000 and max value 60000 ) ... for example : bottom line create range seekbar but both right and left thumb pointed at min value
priceSeekbar.setRange(minPrice, maxPrice);
pic1
but I want this
pic2
as I said , I handled that with this trick
priceSeekbar.setProgress(0f, 100f);
priceSeekbar.setRange(minPrice, maxPrice);
but the following things are very important to me ... when user changes the value like this
pic3
after user pressed the clear button , I want to reset the seekbar ( back to pic2 ) and if user selected some range , when he/she opened this form again I show what he/she selected before (like pic3)
I read the Wiki and sample app for this great lib , but I couldn't find solution , please help me ... I'm sorry for my bad english