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 an animated Orrery

An Orrery is a mechanical device that models the solar system. In the middle, there is the Sun, and around it spins planets, the Moon, and occasionally fixed stars. They were used in ancient Greece to aid navigation, and they have been used as an illustrative device by the sciences since the 1700s.

They used to be made out of metal, cogs, and gears. But today we will make one out of Drawables, Animators, and PropertyValuesHolders. You saw that one coming, didn't you?

Enough lollygagging, let's make it! The steps for making an Orrery are as follows:

  1. Create a new Android project and give it the following properties:
    • Project name:
    • Build Target:
    • Application name:
    • Package name:
    • Activity:
  2. First up, let's create the ...

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