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

Time for action—making a teleport interpolator

Our new Fragment looks kind of cool, but what would make it cooler? If it had a UFO teleport into it!

We are going to add a new UFO graphic, and we will create a new sort of interpolator to add it to the screen. The teleport looks a little bit like a flickering signal being tuned in. When it starts, it will be all flickers and no alien. But as it progresses, the flickering will become a steadier image of a UFO.

Ready? Let's go.

  1. The first thing we will need is our UFO graphic. Locate the file alien.png from the code bundle of this chapter, and put it in your project under res/Drawable.
  2. Next, we want to add our alien graphic to the OrreryInfo fragment. Open up OrreryInfo.java and add the following 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