PacktLib: Android 3.0 Animations: Beginner’s Guide

Android 3.0 Animations

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Animation Techniques on Android

An animated application: counting calculator

Time for action - learning to count with the counting calculator

Frame animation

Time for action playing with the frames

Tweening

Time for action finding tweens

Animators new in Android 3.0!

Beyond views: high-speed animating in 2 dimensions

What do views do anyway?

Time for action - let's draw views

Animating awesome 3D

Making a better application

Summary

Frame Animations

Making a frame animation

Time for action - the funky stick man

Making frame animations in Java

Time for action - making the stick man interactive

Time for action - programmatically defined animation

Animating a transition between frames

Time for action - make the transition

Summary

Tweening and Using Animators

Greeting the tween

Time for action - making a tower of Hanoi puzzle

Assembling the building blocks of a tween

Time for action - composing a tween animation

Time for action - creating an everlasting tween

Time for action - laying out blocks

Receiving animation events

Time for action - receiving animation events

Interpolating animations

Time for action - changing the rhythm with interpolators

Finding out more

Summary

Animating Properties and Tweening Pages

Note for developers using versions of Android before 3.0

Turning pages with a ViewFlipper

Time for action - making an interactive book

Creating tween animations in Java

Time for action - creating a tween in Java

Writing the SlideAndScale animation in Java

Time for action - animating the rolling ball

Animating values with ValueAnimator

Time for action - making a ball bounce

Time for action - improving our bouncing ball

Comparing animators and tweens

Summary

Creating Classes for Tween Animation

Creating multi-variable Animators

Time for action - making an animated Orrery

Time for action - animating between objects

Time for action - defining fixed points with Keyframes

Time for action - adding a Description Pane

What just happened?

Declaring ObjectAnimator attributes

Pop quiz - Fragment animation and XML Animators

Have a go hero animating Fragments

Customizing the interpolator classes

Time for action - making a teleport interpolator

Summary

Using 3D Visual Techniques

Understanding 3D graphics

Showing depth with 3D effects

Raising elements

Time for action - making a jigsaw with lifting pieces

Time for action - using shadows with our jigsaw

Time for action - changing the focus of the jigsaw

Creating 3D rotations

Time for action - spinning jigsaws

Summary

2D Graphics with Surfaces

Introducing game loops

Drawing a surface on the screen

Time for action - animating bubbles on a surface

Time for action - making more realistic bubbles

Time for action - creating smooth game loops

Summary

Live Wallpapers

Creating a live wallpaper

Time for action - making our first live wallpaper

Adding interactivity to live wallpaper

Time for action - making soapy fingers

Using live wallpaper preferences

Time for action - configuring a live wallpaper

Time for action - updating live wallpaper configuration

Summary

Practicing Good Practice and Style

Using focus and metaphor

Time for action - don't confuse me with animation!

Time for action - getting messages from houses

Reducing power usage

Time for action - measuring battery usage with PowerTutor

Time for action - identifying a problem

Time for action - tracing to find optimizations

Time for action - squashing gremlins that use too much power

Summary

Pop quiz - Answers

Pop quiz - Answers

Pop quiz - Answers

Pop quiz - Answers

Pop quiz - Answers

Pop quiz - Answers

Pop quiz - Answers

Pop quiz - Answers

Pop quiz - Answers

Pop quiz - Answers