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 jigsaw with lifting pieces

Today, we're going to make a jigsaw puzzle. A jigsaw puzzle is similar to many interfaces that you might design in that it contains several pieces that have some interesting information on them. The user will be given a scene and will be able to swap pieces of that scene around by touching two of them to indicate that they want to swap them around.

The technique is very simple, but we are going to capture it in its own class. This way, as we add more effects to the 3D "look", they can all be kept in the same place.

As part of this example, I've used a lovely picture of my dog and me. If you want to use your own picture, you will need to split it into four pieces and resize it, so that it will ...

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