Monday, 30 March 2015

Customize Your Animations while starting an Activity

12:00:00 Posted by Kumanan
Android 5.0 (API level 21) includes new APIs to create custom animations in your app. For example, you can enable activity transitions and define an exit transition inside an activity:

Intent intent = new Intent(this, MyOtherActivity.class);
        startActivity(intent,
                      ActivityOptions
                          .makeSceneTransitionAnimation(this).toBundle());


When you start another activity from this activity, the exit transition is activated.