tankery / CircularSeekBar

Custom circular SeekBar (Circle, Semi-circle, and Ellipse) for Android
Apache License 2.0
376 stars 60 forks source link

Best way to add progressDirection (counter clockwise) #15

Closed msdrozd closed 6 years ago

msdrozd commented 6 years ago

Hi,

I'm trying to find out the best solution to set the progress direction either clockwise (like now) or counter clockwise. Any Tips what part of the CircularSeekBar Code I have to update or change?

JonathanImperato commented 6 years ago

Try to enable negative

tankery commented 6 years ago

Hi, @Beardsome.

If your requirement is to have progress in both direction, set app:cs_negative_enabled in xml file or CircularSeekBar. setNegativeEnabled(true) to enable the negative progress is the solution.

But if what you need is just want to limit to a single direction, but in counter clockwise, I think maybe you can "flip" the view by set the scaleX to -1.