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

Summary

In this chapter, we have made an interactive book using the Android ViewFlipper class to make a page-turning interface.

We also learned about the ValueAnimator and ObjectAnimator classes, which are new animation techniques in Android 3.0.

Specifically, we covered:

  • Describing a ViewFlipper in XML
  • Manipulating the ViewFlipper using events in Java
  • Specifying a tween animation in Java and comparing it to XML
  • Creating ObjectAnimators to animate a parameter on an object
  • Creating ValueAnimators to provide animation events for a listener to use

We considered the relative flexibility of the ValueAnimator versus the simplicity of using the ObjectAnimator to achieve an animation.

We have started to gain a more in-depth knowledge about animating views. In ...

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