oli107 / material-range-bar

Android widget for selecting a range of values.
Apache License 2.0
1.68k stars 370 forks source link

How to set a pin in middle? #130

Open mayuroks opened 6 years ago

mayuroks commented 6 years ago

I have a dual seek bar with values ranging from 1 to 100. If my left value is 30 and right value is 70.

How do I make the left and right pins appear at 30 and 70 respectively. By default these value start at 0 and 100 respectively.

Below is an example of what I want to achieve. How to achieve this programatically?

    30                70
----O-----------------O--------
RQbas commented 6 years ago

Hi there. I dont know if you already figured it out, if not I suggest to use method setRangePinsByValue(float leftPinValue, float rightPinValue) which comes from RangeBar class.