RangeSeekBar icon indicating copy to clipboard operation
RangeSeekBar copied to clipboard

How to set value to right/left seekbar programmatically when button pressed ...

Open NickanBagherpour opened this issue 5 years ago • 0 comments

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);

Screenshot_20200115-104924 pic1

but I want this

Screenshot_20200115-110006a 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

Screenshot_20200115-110014aa 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

NickanBagherpour avatar Jan 15 '20 08:01 NickanBagherpour