How to put rotate animation between two activities.when is startactivity and next activity is start with rotate animation
How to put rotate animation between two activities.when is startactivity and next activity is
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a tutorial on how to add an animation when transistioning between two activities. However, instead of using a translate animation like in the article, you’ll want to use a rotate animation. For more information on animations, checkout this documentation.
Putting those two things together, here’s what you need to do. First, where you make the call to start the new activity do this:
Then create the following two animations in your xml:
rotate_out.xml
rotate_in.xml
You can play with the fromDegrees, toDegrees, and pivotX values to get exactly what you’d like.