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

Using live wallpaper preferences

Live wallpapers aren't necessarily completely self-contained. For instance, we have seen in the past two chapters that there are lots of different things in a surface-based animation that can be parameterized; we could make these parameters available to a user in the form of a preferences panel.

In fact, Android expects that you will want to do this, and provides an optional button on the live wallpaper browser to allow you to customize the wallpaper as you wish.

In the next example, we will see how to add preferences to a live wallpaper animation.

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