O'Reilly logo

Hello, Android, 4th Edition by Ed Burnette

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 7Adding Animation

One way to make your Android application more interesting and entertaining is to add animation. When done tastefully, animation can help turn a ho-hum program into something exciting and vibrant.

Instead of having things appear abruptly on the screen, have them fly or bounce in. Instead of a static background, bring it to life with a little movement. This is especially needed for games that are supposed to be fun anyway. Don’t overdo it, though—the animation should add to the experience, not distract from it.

In this chapter we’ll add two animated elements to the Tic-Tac-Toe game. First we’ll put a scrolling background underneath the main menu. Then we’ll make the tiles bounce around when you touch them.

If you stare ...

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