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
This commit is contained in:
Chet Haase
2012-02-01 15:10:12 -08:00
parent 7ed71b7896
commit b29e7870de
4 changed files with 40 additions and 0 deletions

View File

@@ -646,6 +646,28 @@
<item>10</item>
</string-array>
<!-- Titles for animator duration scale preference. [CHAR LIMIT=35] -->
<string-array name="animator_duration_scale_entries">
<item>Animation off</item>
<item>Animation scale .5x</item>
<item>Animation scale 1x</item>
<item>Animation scale 1.5x</item>
<item>Animation scale 2x</item>
<item>Animation scale 5x</item>
<item>Animation scale 10x</item>
</string-array>
<!-- Values for animator duration scale preference. -->
<string-array name="animator_duration_scale_values" translatable="false" >
<item>0</item>
<item>.5</item>
<item>1</item>
<item>1.5</item>
<item>2</item>
<item>5</item>
<item>10</item>
</string-array>
<!-- Titles for app process limit preference. [CHAR LIMIT=35] -->
<string-array name="app_process_limit_entries">
<item>Standard limit</item>

View File

@@ -3516,6 +3516,9 @@
<!-- UI debug setting: scaling factor for transition animations [CHAR LIMIT=25] -->
<string name="transition_animation_scale_title">Transition animation scale</string>
<!-- UI debug setting: scaling factor for all Animator-based animations [CHAR LIMIT=25] -->
<string name="animator_duration_scale_title">Animator duration scale</string>
<!-- Preference category for application debugging development settings. [CHAR LIMIT=25] -->
<string name="debug_applications_category">Apps</string>