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.

Chapter 3. Tweening and Using Animators

In the previous chapter, we saw how to take an existing animation and add it to an Android layout. In this chapter, we shall look at how to take ordinary views and widgets within a layout and add animation to them.

The main points we shall cover include:

Defining a tween in XML

The tweening operations that are provided with Android

Defining and parameterizing an Animator

Let's start by making our first tween.

Greeting the tween

Tweens, you will recall, are animations that move between two states. They are atomic elements in Android, and exist completely independent of individual views. In this way, you can apply the same tween to lots of different things to give your application a consistent look and feel in its ...

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