From 99960b73e986409f61c5b5d05aa04dea3105a663 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Tue, 17 May 2011 17:00:58 -0700 Subject: [PATCH] cherrypick Change-Id: I7a3612a1bc22cf53d382f787fa43fe222978d35e docs: add 'animator' resource info Change-Id: Ifbd130e5bf762d89300c20db0d86d7f695b4ff4b --- docs/html/guide/topics/graphics/animation.jd | 42 ++++++++++++++----- .../topics/resources/providing-resources.jd | 13 +++++- 2 files changed, 42 insertions(+), 13 deletions(-) diff --git a/docs/html/guide/topics/graphics/animation.jd b/docs/html/guide/topics/graphics/animation.jd index e10ab3ee34bea..0b02ee767e7d6 100644 --- a/docs/html/guide/topics/graphics/animation.jd +++ b/docs/html/guide/topics/graphics/animation.jd @@ -868,10 +868,22 @@ ObjectAnimator.ofFloat(myView, "rotation", 0f, 360f); For more information on creating animators, see the sections on animating with ValueAnimator and ObjectAnimator -

Declaring Animations in XML

+ +

Declaring Animations in XML

The property animation system lets you declare property animations with XML instead of doing - it programmatically. The following Android classes have XML declaration support with the + it programmatically. By defining your animations in XML, you can easily reuse your animations +in multiple activities and more easily edit the animation sequence.

+ +

To distinguish animation files that use the new property animation APIs from those that use the +legacy view animation framework, +starting with Android 3.1, you should save the XML files for property animations in the {@code +res/animator/} directory (instead of {@code res/anim/}). Using the {@code animator} directory name +is optional, but necessary if you want to use the layout editor tools in the Eclipse ADT plugin (ADT +11.0.0+), because ADT only searches the {@code res/animator/} directory for property animation +resources.

+ +

The following property animation classes have XML declaration support with the following XML tags: