Android-CircleMenu icon indicating copy to clipboard operation
Android-CircleMenu copied to clipboard

Rotate only one child at a time like Viewpager

Open nsuthar20 opened this issue 7 years ago • 3 comments

How do I rotate Only one child at a time on swipe, like ViewPager.

nsuthar20 avatar Feb 24 '18 09:02 nsuthar20

I don't see how this would look like, could you please explain?

szugyi avatar Mar 19 '18 20:03 szugyi

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.

nsuthar20 avatar Mar 22 '18 06:03 nsuthar20

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.

szugyi avatar Mar 22 '18 20:03 szugyi