milosmns / circular-slider-android

Circular Slider UI Control for Android
GNU General Public License v3.0
307 stars 51 forks source link

How do I retrieve the angle? #21

Closed Mikkelet closed 4 years ago

Mikkelet commented 5 years ago

Hey,

I've implemented the slider and it works so far, but I cannot see how I can retrieve the angle of the slider. I can see a lot of setters, such as setAngle, but no getters.

thanks

milosmns commented 5 years ago

Hey,

So you can attach a listener with setOnSliderMovedListener to get mathematical movement data. It involves a bit of maths. If you want a done solution for making the events user-friendly (say 0..100), I gave a hint here -- https://github.com/milosmns/circular-slider-android/issues/9