diff options
| author | 2010-11-04 17:32:07 -0700 | |
|---|---|---|
| committer | 2010-11-04 17:32:07 -0700 | |
| commit | 0ed714a95d1c9c11c3ef8aebd5be4276d1be8740 (patch) | |
| tree | 6c461c673d45b5aa4d3965f34584f7b8bf80208a | |
| parent | 9ec4b7f2f638903baf647e00ad2f3afb05ade648 (diff) | |
| parent | bf78275b2cb04eec22ec99f394c87e00b91e5235 (diff) | |
Merge "Rough cut at new window animations."
| -rw-r--r-- | core/res/res/anim/activity_close_enter.xml | 9 | ||||
| -rw-r--r-- | core/res/res/anim/activity_close_exit.xml | 9 | ||||
| -rw-r--r-- | core/res/res/anim/activity_open_enter.xml | 9 | ||||
| -rw-r--r-- | core/res/res/anim/activity_open_exit.xml | 9 | ||||
| -rw-r--r-- | core/res/res/anim/task_close_enter.xml | 15 | ||||
| -rw-r--r-- | core/res/res/anim/task_close_exit.xml | 9 | ||||
| -rw-r--r-- | core/res/res/anim/task_open_enter.xml | 9 | ||||
| -rw-r--r-- | core/res/res/anim/task_open_exit.xml | 15 | ||||
| -rw-r--r-- | core/res/res/anim/wallpaper_close_enter.xml | 19 | ||||
| -rw-r--r-- | core/res/res/anim/wallpaper_close_exit.xml | 22 | ||||
| -rw-r--r-- | core/res/res/anim/wallpaper_open_enter.xml | 18 | ||||
| -rw-r--r-- | core/res/res/anim/wallpaper_open_exit.xml | 16 | ||||
| -rw-r--r-- | core/res/res/values/config.xml | 6 |
13 files changed, 126 insertions, 39 deletions
diff --git a/core/res/res/anim/activity_close_enter.xml b/core/res/res/anim/activity_close_enter.xml index f1258e8abb1c..155ad0054ad2 100644 --- a/core/res/res/anim/activity_close_enter.xml +++ b/core/res/res/anim/activity_close_enter.xml @@ -18,8 +18,9 @@ --> <set xmlns:android="http://schemas.android.com/apk/res/android" - android:interpolator="@anim/decelerate_interpolator" - android:zAdjustment="top"> - <translate android:fromXDelta="-100%" android:toXDelta="0" - android:duration="@android:integer/config_shortAnimTime"/> + android:interpolator="@anim/decelerate_interpolator"> + <!-- Do nothing. --> + <alpha android:fromAlpha="1.0" android:toAlpha="1.0" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> </set> diff --git a/core/res/res/anim/activity_close_exit.xml b/core/res/res/anim/activity_close_exit.xml index bf3d8cd34d31..77684d934a3d 100644 --- a/core/res/res/anim/activity_close_exit.xml +++ b/core/res/res/anim/activity_close_exit.xml @@ -19,6 +19,11 @@ <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@anim/decelerate_interpolator"> - <translate android:fromXDelta="0%" android:toXDelta="33%" - android:duration="@android:integer/config_shortAnimTime"/> + <scale android:fromXScale="1.0" android:toXScale="1.0" + android:fromYScale="1.0" android:toYScale="0.9" + android:pivotX="50%p" android:pivotY="50%p" + android:duration="@android:integer/config_mediumAnimTime" /> + <alpha android:fromAlpha="1.0" android:toAlpha="0" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> </set> diff --git a/core/res/res/anim/activity_open_enter.xml b/core/res/res/anim/activity_open_enter.xml index a9ea381d1fed..d4140ef589e8 100644 --- a/core/res/res/anim/activity_open_enter.xml +++ b/core/res/res/anim/activity_open_enter.xml @@ -19,6 +19,11 @@ <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@anim/decelerate_interpolator"> - <translate android:fromXDelta="33%" android:toXDelta="0" - android:duration="@android:integer/config_shortAnimTime"/> + <scale android:fromXScale="1.0" android:toXScale="1.0" + android:fromYScale="0.9" android:toYScale="1.0" + android:pivotX="50%p" android:pivotY="50%p" + android:duration="@android:integer/config_mediumAnimTime" /> + <alpha android:fromAlpha="0" android:toAlpha="1.0" + android:interpolator="@anim/accelerate_decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> </set> diff --git a/core/res/res/anim/activity_open_exit.xml b/core/res/res/anim/activity_open_exit.xml index b04b79eac09b..155ad0054ad2 100644 --- a/core/res/res/anim/activity_open_exit.xml +++ b/core/res/res/anim/activity_open_exit.xml @@ -18,8 +18,9 @@ --> <set xmlns:android="http://schemas.android.com/apk/res/android" - android:interpolator="@anim/decelerate_interpolator" - android:zAdjustment="top"> - <translate android:fromXDelta="0%" android:toXDelta="-100%" - android:duration="@android:integer/config_shortAnimTime"/> + android:interpolator="@anim/decelerate_interpolator"> + <!-- Do nothing. --> + <alpha android:fromAlpha="1.0" android:toAlpha="1.0" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> </set> diff --git a/core/res/res/anim/task_close_enter.xml b/core/res/res/anim/task_close_enter.xml index c42ad830db90..155ad0054ad2 100644 --- a/core/res/res/anim/task_close_enter.xml +++ b/core/res/res/anim/task_close_enter.xml @@ -18,14 +18,9 @@ --> <set xmlns:android="http://schemas.android.com/apk/res/android" - android:interpolator="@anim/decelerate_interpolator" - android:zAdjustment="top"> - <!-- For now stay like the normal activity transition. - <scale android:fromXScale="2.0" android:toXScale="1.0" - android:fromYScale="2.0" android:toYScale="1.0" - android:pivotX="100%p" android:pivotY="50%p" - android:duration="@android:integer/config_shortAnimTime" /> - --> - <translate android:fromXDelta="-100%" android:toXDelta="0" - android:duration="@android:integer/config_shortAnimTime"/> + android:interpolator="@anim/decelerate_interpolator"> + <!-- Do nothing. --> + <alpha android:fromAlpha="1.0" android:toAlpha="1.0" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> </set> diff --git a/core/res/res/anim/task_close_exit.xml b/core/res/res/anim/task_close_exit.xml index 66d34808ddcd..77684d934a3d 100644 --- a/core/res/res/anim/task_close_exit.xml +++ b/core/res/res/anim/task_close_exit.xml @@ -19,6 +19,11 @@ <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@anim/decelerate_interpolator"> - <translate android:fromXDelta="0%" android:toXDelta="33%" - android:duration="@android:integer/config_shortAnimTime"/> + <scale android:fromXScale="1.0" android:toXScale="1.0" + android:fromYScale="1.0" android:toYScale="0.9" + android:pivotX="50%p" android:pivotY="50%p" + android:duration="@android:integer/config_mediumAnimTime" /> + <alpha android:fromAlpha="1.0" android:toAlpha="0" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> </set> diff --git a/core/res/res/anim/task_open_enter.xml b/core/res/res/anim/task_open_enter.xml index 66adf9fa6801..d4140ef589e8 100644 --- a/core/res/res/anim/task_open_enter.xml +++ b/core/res/res/anim/task_open_enter.xml @@ -19,6 +19,11 @@ <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@anim/decelerate_interpolator"> - <translate android:fromXDelta="33%" android:toXDelta="0" - android:duration="@android:integer/config_shortAnimTime"/> + <scale android:fromXScale="1.0" android:toXScale="1.0" + android:fromYScale="0.9" android:toYScale="1.0" + android:pivotX="50%p" android:pivotY="50%p" + android:duration="@android:integer/config_mediumAnimTime" /> + <alpha android:fromAlpha="0" android:toAlpha="1.0" + android:interpolator="@anim/accelerate_decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> </set> diff --git a/core/res/res/anim/task_open_exit.xml b/core/res/res/anim/task_open_exit.xml index 4a2cef431031..155ad0054ad2 100644 --- a/core/res/res/anim/task_open_exit.xml +++ b/core/res/res/anim/task_open_exit.xml @@ -18,14 +18,9 @@ --> <set xmlns:android="http://schemas.android.com/apk/res/android" - android:interpolator="@anim/decelerate_interpolator" - android:zAdjustment="top"> - <!-- For now stay like the normal activity transition. - <scale android:fromXScale="1.0" android:toXScale="2.0" - android:fromYScale="1.0" android:toYScale="2.0" - android:pivotX="100%p" android:pivotY="50%p" - android:duration="@android:integer/config_shortAnimTime" /> - --> - <translate android:fromXDelta="0%" android:toXDelta="-100%" - android:duration="@android:integer/config_shortAnimTime"/> + android:interpolator="@anim/decelerate_interpolator"> + <!-- Do nothing. --> + <alpha android:fromAlpha="1.0" android:toAlpha="1.0" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> </set> diff --git a/core/res/res/anim/wallpaper_close_enter.xml b/core/res/res/anim/wallpaper_close_enter.xml index 6eb2a89f1e89..ba50d69202b5 100644 --- a/core/res/res/anim/wallpaper_close_enter.xml +++ b/core/res/res/anim/wallpaper_close_enter.xml @@ -17,8 +17,26 @@ */ --> +<!-- New holo animation, zooming contents on top of wallpaper down. --> +<set xmlns:android="http://schemas.android.com/apk/res/android" + android:zAdjustment="top"> + <scale android:fromXScale="1.0" android:toXScale="1.0" + android:fromYScale=".9" android:toYScale="1.0" + android:pivotX="50%p" android:pivotY="50%p" + android:fillEnabled="true" android:fillBefore="true" + android:interpolator="@anim/decelerate_interpolator" + android:startOffset="@android:integer/config_mediumAnimTime" + android:duration="@android:integer/config_mediumAnimTime" /> + <alpha android:fromAlpha="0" android:toAlpha="1.0" + android:fillEnabled="true" android:fillBefore="true" + android:interpolator="@anim/decelerate_interpolator" + android:startOffset="@android:integer/config_mediumAnimTime" + android:duration="@android:integer/config_mediumAnimTime"/> +</set> + <!-- This version zooms the new non-wallpaper up out of the wallpaper, without zooming the wallpaper itself. --> +<!-- <set xmlns:android="http://schemas.android.com/apk/res/android" android:zAdjustment="top"> <scale android:fromXScale=".5" android:toXScale="1.0" @@ -30,6 +48,7 @@ android:interpolator="@anim/accelerate_decelerate_interpolator" android:duration="@android:integer/config_mediumAnimTime"/> </set> +--> <!-- This version zooms the new non-wallpaper down on top of the wallpaper, without zooming the wallpaper itself. --> diff --git a/core/res/res/anim/wallpaper_close_exit.xml b/core/res/res/anim/wallpaper_close_exit.xml index eccce81ee8bd..5af1d118da67 100644 --- a/core/res/res/anim/wallpaper_close_exit.xml +++ b/core/res/res/anim/wallpaper_close_exit.xml @@ -17,8 +17,29 @@ */ --> +<!-- New holo animation, zooming contents on top of wallpaper down. --> +<set xmlns:android="http://schemas.android.com/apk/res/android" + android:detachWallpaper="true"> + <scale android:fromXScale="1.0" android:toXScale="0.8" + android:fromYScale="1.0" android:toYScale="0.8" + android:pivotX="50%p" android:pivotY="50%p" + android:fillEnabled="true" android:fillAfter="true" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime" /> + <alpha android:fromAlpha="1.0" android:toAlpha="0" + android:fillEnabled="true" android:fillAfter="true" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> + <!-- This is just to keep the animation running for the entire duration. --> + <alpha android:fromAlpha="1.0" android:toAlpha="1.0" + android:startOffset="@android:integer/config_mediumAnimTime" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> +</set> + <!-- This version zooms the new non-wallpaper up out of the wallpaper, without zooming the wallpaper itself. --> +<!-- <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@anim/decelerate_interpolator" android:detachWallpaper="true"> @@ -27,6 +48,7 @@ android:pivotX="50%p" android:pivotY="50%p" android:duration="@android:integer/config_mediumAnimTime" /> </set> +--> <!-- This version zooms the new non-wallpaper down on top of the wallpaper, without zooming the wallpaper itself. --> diff --git a/core/res/res/anim/wallpaper_open_enter.xml b/core/res/res/anim/wallpaper_open_enter.xml index a32c39e4a557..879d84a31489 100644 --- a/core/res/res/anim/wallpaper_open_enter.xml +++ b/core/res/res/anim/wallpaper_open_enter.xml @@ -17,8 +17,25 @@ */ --> +<!-- New holo animation, zooming contents on top of wallpaper back up. --> +<set xmlns:android="http://schemas.android.com/apk/res/android" + android:interpolator="@anim/decelerate_interpolator" + android:detachWallpaper="true"> + <scale android:fromXScale="0.8" android:toXScale="1.0" + android:fromYScale="0.8" android:toYScale="1.0" + android:pivotX="50%p" android:pivotY="50%p" + android:startOffset="@android:integer/config_mediumAnimTime" + android:duration="@android:integer/config_mediumAnimTime" /> + <alpha android:fromAlpha="0" android:toAlpha="1.0" + android:interpolator="@anim/accelerate_decelerate_interpolator" + android:startOffset="@android:integer/config_mediumAnimTime" + android:duration="@android:integer/config_mediumAnimTime"/> +</set> + + <!-- This version zooms the exiting non-wallpaper down in to the wallpaper, without zooming the wallpaper itself. --> +<!-- <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@anim/decelerate_interpolator" android:detachWallpaper="true"> @@ -27,6 +44,7 @@ android:pivotX="50%p" android:pivotY="50%p" android:duration="@android:integer/config_mediumAnimTime" /> </set> +--> <!-- This version zooms the new non-wallpaper down on top of the wallpaper, without zooming the wallpaper itself. --> diff --git a/core/res/res/anim/wallpaper_open_exit.xml b/core/res/res/anim/wallpaper_open_exit.xml index 8f0e01277636..89fff8259762 100644 --- a/core/res/res/anim/wallpaper_open_exit.xml +++ b/core/res/res/anim/wallpaper_open_exit.xml @@ -16,8 +16,23 @@ ** limitations under the License. */ --> + +<!-- New holo animation, zooming contents on top of wallpaper back up. --> +<set xmlns:android="http://schemas.android.com/apk/res/android" + android:zAdjustment="top"> + <scale android:fromXScale="1.0" android:toXScale="1.0" + android:fromYScale="1.0" android:toYScale=".9" + android:pivotX="50%p" android:pivotY="50%p" + android:interpolator="@anim/decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime" /> + <alpha android:fromAlpha="1.0" android:toAlpha="0" + android:interpolator="@anim/accelerate_decelerate_interpolator" + android:duration="@android:integer/config_mediumAnimTime"/> +</set> + <!-- This version zooms the exiting non-wallpaper down in to the wallpaper, without zooming the wallpaper itself. --> +<!-- <set xmlns:android="http://schemas.android.com/apk/res/android" android:zAdjustment="top"> <scale android:fromXScale="1.0" android:toXScale=".5" @@ -29,6 +44,7 @@ android:interpolator="@anim/accelerate_decelerate_interpolator" android:duration="@android:integer/config_mediumAnimTime"/> </set> +--> <!-- This version zooms the new non-wallpaper down on top of the wallpaper, without zooming the wallpaper itself. --> diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index a6953d43a910..6c3eaac86e7d 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -58,13 +58,13 @@ <bool name="config_sf_slowBlur">false</bool> <!-- The duration (in milliseconds) of a short animation. --> - <integer name="config_shortAnimTime">150</integer> + <integer name="config_shortAnimTime">200</integer> <!-- The duration (in milliseconds) of a medium-length animation. --> - <integer name="config_mediumAnimTime">300</integer> + <integer name="config_mediumAnimTime">400</integer> <!-- The duration (in milliseconds) of a long animation. --> - <integer name="config_longAnimTime">400</integer> + <integer name="config_longAnimTime">500</integer> <!-- The duration (in milliseconds) that the radio will scan for a signal when there's no network connection. If the scan doesn't timeout, use zero --> |