tankery / CircularSeekBar

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

How can the direction of the progress bar be counterclockwise? I see a counterclockwise preview in the example, but according to the example, it is actually not like this. #30

Closed artillerymans closed 3 years ago

artillerymans commented 3 years ago

How can the direction of the progress bar be counterclockwise? I see a counterclockwise preview in the example, but according to the example, it is actually not like this.

artillerymans commented 3 years ago

2021-03-12_15-42

artillerymans commented 3 years ago

Like the above two, their directions are completely different

tankery commented 3 years ago

Hey, @weizhizhu The example show a case to use "negative progress", you could do this by using setNegativeEnabled.

But if you are saying that you'd like to have a positive progress with counterclockwise bar, I might said it's not supported by this view. But you could be able to do this by "flip" the view. using a trick to setScaleX(-1f) to the view.

Or, you could just modify the code to do whatever you want.