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

Chapter 5. Creating Classes for Tween Animation

In the last chapter, we developed the idea of having specialized classes for using animations, by which I mean the PageFlipper. We also introduced the new Animator classes, although we skimmed over some of the more complex features available to them.

This chapter is about digging deeper into Android animation, and some patterns you are likely to encounter, when using them in a real-world situation. In particular, we will look at the following:

  • Using animators to parameterize more complex animations
  • Applying an animation to a Fragment
  • Creating an ObjectAnimator in XML
  • Subclassing a tween animation to add extra tween animations

Let's get started!

Creating multi-variable Animators

In the previous chapter, we ...

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