O'Reilly logo

Android 3.0 Animations by Alex Shaw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Have a go hero—animating Fragments

A fade animation is a simple way to add a new Fragment to the scene. Another alternative would be to slide the Fragment into view from the right-hand side of the screen.

Change setCustomAnimation on the FragmentTransaction so that the Fragment slides into place on the screen.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required