Android tutorial for activity transition animation - Android
Android tutorial to show the transition animation when navigate from one activity to another or from activity to fragment
slide in right
slide out left
slide out right
second page activity
Please donate and support at https://www.paypal.me/Rajcoomar
Screen Shot
Step 1
create a new project in android studio with empty activity
Step 2
right click on the "res" directory and in the context menu select new and add a new Android resource directory
Step 3
Add animation files(XML) in the directory you have created
Slide in left
slide in right
slide out right
step 4
Create two activities one is the main activity and the second that the user will navigate in order to be able to see the transition animation
Home page activity
second page activity
Step 5
Override the onClick() method and add the method "overridePendingTransition()"
Download
Click here to download source codePlease donate and support at https://www.paypal.me/Rajcoomar
Comments
Post a Comment