Android-CircleMenu
Android-CircleMenu copied to clipboard
Rotate only one child at a time like Viewpager
How do I rotate Only one child at a time on swipe, like ViewPager.
I don't see how this would look like, could you please explain?
Like I have 1,2,3,4 items as a child of Circle menu. On fast scrolling from 1, I want it to stop on 2.
This is not supported by the library. If you want to implement something like this, you need to change the onFling methods implementation in the CircleLayout
https://github.com/szugyi/Android-CircleMenu/blob/afd2df796aaa8207e1ecd94179b2d1e3af4d7cd1/circlemenu/src/main/java/com/szugyi/circlemenu/view/CircleLayout.java#L506
You could determine the next element in the flings direction and only animate the layout to the next item from the current one.