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

Declaring ObjectAnimator attributes

When you are declaring an ObjectAnimator in XML, the following table shows you all of the available attributes that you can give your Animator:

Attribute

Values

Description

android:duration

Integer milliseconds

The time taken for the animation to move from the first value to the last

android:valueFrom

android:valueTo

Floats, integers, or colors in #FFFFFF format

The start and end values which the animator will animate between

anrdoid:startDelay

Integer milliseconds

Insert a pause for the specified time before the animation begins

android:repeatCount

Integer count, or INFINITE

How many times to repeat the animation. Note that this value does not include the initial playback. If you want ...

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