oli107 / material-range-bar

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

Add minimum range functionality #182

Closed nispr closed 4 years ago

nispr commented 4 years ago

Adds support to keep both thumbs at a specified minimum distance to each other. A minimum distance of 0 disables crossing thumbs.

Setting a minimum distance is optional: the default value of -1 provides the same behavior as the current version.

krazykira commented 4 years ago

Good work 👏

krazykira commented 4 years ago

@nispr It would be great if you would update the same the next time you contribute

nispr commented 4 years ago

@krazykira Thanks for the integration! Yeah, I was short on time and forgot about the sample, thanks for adding! Will consider it next time.