ceryle / SegmentedButton

Segmented Control with animation for Android API 12+
Apache License 2.0
364 stars 97 forks source link

setPosition(0,true) generates the event setOnClickedButtonPosition #12

Closed DonatelloX closed 7 years ago

DonatelloX commented 7 years ago

When I use setPosition (), the setOnClickedButtonPosition event is fired but it should not happen. Thank you Regards, Donatello

ceryle commented 7 years ago

Hi, I will take a look at this and the other one you asked soon.

ceryle commented 7 years ago

Hi again, setOnClickedButtonPosition() event is now fired if you click buttons. Moreover, with other interface "onPositionChanged" which I have newly added, you can listen any position change that happens on the group.

DonatelloX commented 7 years ago

Hi ceryle, Thank you! You are great! Regards, Donatello

ceryle commented 7 years ago

Your welcome, Donatello :)