oli107 / material-range-bar

Android widget for selecting a range of values.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set a pin in middle?

mayuroks opened this issue · comments

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

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.