From b29e7870de4238cbfa8eb7f3709bed7b49eeacdb Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Wed, 1 Feb 2012 15:10:12 -0800 Subject: [PATCH] Add Developer Option setting for Animator scaling. This new setting allows users to set a scale factor for the duration and startDelay of all Animator-based animations. This setting is very similar to the Transition animation scale and Window animation scale settings, except this one applies specifically to Animator animations. The property is only accessible by users through the Settings UI, not programmatically. The value applies system-wide and is picked up per-process at the time of the first ValueAnimator construction. Change-Id: I4fd02b03e508495b39481bfc8904d8771d0fd4e1 --- res/values/arrays.xml | 22 +++++++++++++++++++ res/values/strings.xml | 3 +++ res/xml/development_prefs.xml | 7 ++++++ .../android/settings/DevelopmentSettings.java | 8 +++++++ 4 files changed, 40 insertions(+) diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 97c6d990eaa..17a16692915 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -646,6 +646,28 @@ 10 + + + Animation off + Animation scale .5x + Animation scale 1x + Animation scale 1.5x + Animation scale 2x + Animation scale 5x + Animation scale 10x + + + + + 0 + .5 + 1 + 1.5 + 2 + 5 + 10 + + Standard limit diff --git a/res/values/strings.xml b/res/values/strings.xml index 988c3aeb90e..842e4e0dcde 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -3516,6 +3516,9 @@ Transition animation scale + + Animator duration scale + Apps diff --git a/res/xml/development_prefs.xml b/res/xml/development_prefs.xml index 68e24c40272..8677a4752b5 100644 --- a/res/xml/development_prefs.xml +++ b/res/xml/development_prefs.xml @@ -104,6 +104,13 @@ android:entries="@array/transition_animation_scale_entries" android:entryValues="@array/transition_animation_scale_values" /> + +