In this video, I’m going to share how to start an activity with slide and fade animation.
When calling an activity, we use startActivity method like this.
startActivity(new Intent(this, MainActivity.class));
In order to make it work with slide and fade animations, you just need to add one line of code.
It’s super easy!
Hope you enjoy 🙂
Android Studio 3.4
Emulator: Nexus 5 (API 27)