oli107 / material-range-bar

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

Reset pin #83

Open Ishwor-Shrestha opened 8 years ago

Ishwor-Shrestha commented 8 years ago

Is there a way to reset the pins?

vo55 commented 7 years ago

rangeBar.setRangePinsByValue(0, 200);

candeiasdan commented 7 years ago

@philipbarwi @Ishwor-Shrestha after resetting the ranger the Thumb disappears. Do you have the same problem? Reset: rangeBar.setRangePinsByValue(0, 200);

XML

<com.appyvet.rangebar.RangeBar
            android:id="@+id/rangeBar"
            style="@style/RangeBar"
            android:layout_width="match_parent"
            android:layout_height="72dp"
            custom:tickEnd="200"
            custom:tickHeight="0dp"
            custom:tickInterval="1"
            custom:tickStart="0" />
Ishwor-Shrestha commented 7 years ago

As @candeiasdan said, after resetting the pins the thumbs disappear

vo55 commented 7 years ago

Sorry, it's been a while and I am not using it anymore, since I finished the project where I used it. Hope anybody else can help you out