

We will be adding another layout file later, using the transition to change from one to the other. The following images show the process in Android Studio. Give the app a main Activity and layout file, choosing the name start_layout.xml for the layout.

You need a minimum SDK of 19 for the transitions classes, so you'll need to take additional steps if you plan on supporting older versions. Start by creating a new app in your chosen IDE. As we use a transition, Android will automatically animate the change from one scene to another. We will define two scenes in which the same view items are arranged differently on the screen. This will involve preparing the layout and drawable files in XML, then configuring and applying the transition in Java. In this tutorial, we will build a simple app with an animated transition in it. You can animate changes in an app screen, defining each phase as a scene and controlling the way in which the transition changes the app appearance from one scene to another.

The Android transitions framework allows you to configure the appearance of changes in your app's user interface.
