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

Receiving animation events

Our block_1 animation flies up into the air with no problems, but what about the landing? Right now, it seems to magically reappear where it started, but we want it to come down the tower on the right-hand side. We need some way to remove the block from the left tower and add it to the right tower.

Fortunately for us, Android provides an event-driven way to do things once an animation has finished. Let's take a look at how to add an animation listener to do something.

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