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

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


fade in

Fade out


Slide in left


slide in right


slide out left


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 code

Please donate and support at https://www.paypal.me/Rajcoomar

Comments

Popular posts from this blog

C# Windows Form : PetCare

Fake Call Android Application

Car Wash System vb.net