Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Wrong id of items #56

Open
adimobiletech opened this issue Mar 22, 2019 · 1 comment
Open

Getting Wrong id of items #56

adimobiletech opened this issue Mar 22, 2019 · 1 comment
Labels

Comments

@adimobiletech
Copy link

I rotated the circle_layout with below code

RotateAnimation rotate = new RotateAnimation(0, 360, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
	rotate.setDuration(10000);
	rotate.setInterpolator(new LinearInterpolator());
	rotate.setRepeatCount(Animation.INFINITE);
	com.szugyi.circlemenu.view.CircleLayout  image= (com.szugyi.circlemenu.view.CircleLayout)findViewById(R.id.circle_layout);
	image.startAnimation(rotate);

Now when I click on items they show toasts of different items id ,click is getting wrong in this scenario .

@szugyi
Copy link
Owner

szugyi commented Mar 22, 2019

You should not rotate the CircleLayout that way. All you are doing is rotating the ViewGroup itself. To rotate the items you must animate the angle property of the view via the setAngle method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants