Transitions

Android versions with an API level of 21 or higher come with a set of material-design-compliant transition animations. As one would imagine, transition animations give us control over how components exit a screen and how they enter. This is all made possible with the TransitionManager.

Exits and entrances

The best introduction to the TransitionManager is to see it in action. This can be achieved with a simple example, where we get to see the types of animation available to us before tackling the mechanics of actually moving from one activity to another. This will also give us the opportunity to take a quick look at the GridLayout, which we have not yet covered:

  1. Start a new Android project with an API level of 21 or higher.
  2. Inside the root ...

Get Learning Material Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.