wallpaper_close_exit.xml revision 6908cd154c5a2ed2e3b21d40f51952d45be69184
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4** Copyright 2009, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License"); 
7** you may not use this file except in compliance with the License. 
8** You may obtain a copy of the License at 
9**
10**     http://www.apache.org/licenses/LICENSE-2.0 
11**
12** Unless required by applicable law or agreed to in writing, software 
13** distributed under the License is distributed on an "AS IS" BASIS, 
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
15** See the License for the specific language governing permissions and 
16** limitations under the License.
17*/
18-->
19
20<!-- New holo animation, zooming contents on top of wallpaper down. -->
21<set xmlns:android="http://schemas.android.com/apk/res/android"
22        android:detachWallpaper="true" android:shareInterpolator="false">
23    <scale android:fromXScale="1.0" android:toXScale="0.8"
24            android:fromYScale="1.0" android:toYScale="0.8"
25            android:pivotX="50%p" android:pivotY="50%p"
26            android:fillEnabled="true" android:fillAfter="true"
27            android:interpolator="@anim/decelerate_quint_interpolator"
28            android:duration="@android:integer/config_mediumAnimTime" />
29    <alpha android:fromAlpha="1.0" android:toAlpha="0"
30            android:fillEnabled="true" android:fillAfter="true"
31            android:interpolator="@anim/decelerate_cubic_interpolator"
32            android:duration="@android:integer/config_mediumAnimTime"/>
33    <!-- This is just to keep the animation running for the entire duration. -->
34    <alpha android:fromAlpha="1.0" android:toAlpha="1.0"
35            android:startOffset="@android:integer/config_mediumAnimTime"
36            android:duration="@android:integer/config_mediumAnimTime"/>
37</set>
38
39<!-- This version zooms the new non-wallpaper up out of the
40     wallpaper, without zooming the wallpaper itself. -->
41<!--
42<set xmlns:android="http://schemas.android.com/apk/res/android"
43        android:interpolator="@anim/decelerate_interpolator"
44        android:detachWallpaper="true">
45    <scale android:fromXScale="1.0" android:toXScale="2.0"
46           android:fromYScale="1.0" android:toYScale="2.0"
47           android:pivotX="50%p" android:pivotY="50%p"
48           android:duration="@android:integer/config_mediumAnimTime" />
49</set>
50-->
51
52<!-- This version zooms the new non-wallpaper down on top of the
53     wallpaper, without zooming the wallpaper itself. -->
54<!--
55<set xmlns:android="http://schemas.android.com/apk/res/android"
56        android:interpolator="@anim/decelerate_interpolator"
57        android:detachWallpaper="true">
58    <scale android:fromXScale="1.0" android:toXScale=".5"
59           android:fromYScale="1.0" android:toYScale=".5"
60           android:pivotX="50%p" android:pivotY="50%p"
61           android:duration="@android:integer/config_mediumAnimTime" />
62</set>
63-->
64
65<!-- This version zooms the new non-wallpaper down on top of the
66     wallpaper.  The wallpaper here just stays fixed behind. -->
67<!--
68<set xmlns:android="http://schemas.android.com/apk/res/android"
69        android:interpolator="@anim/decelerate_interpolator"
70        android:zAdjustment="top">
71    <scale android:fromXScale="1.0" android:toXScale=".5"
72           android:fromYScale="1.0" android:toYScale=".5"
73           android:pivotX="50%p" android:pivotY="50%p"
74           android:duration="@android:integer/config_mediumAnimTime" />
75    <alpha android:fromAlpha="1.0" android:toAlpha="0"
76            android:duration="@android:integer/config_mediumAnimTime"/>
77</set>
78-->
79
80<!-- This version is a variation on the inter-activity slide that
81    also scales the wallpaper. -->
82<!--
83<set xmlns:android="http://schemas.android.com/apk/res/android"
84        android:interpolator="@anim/decelerate_interpolator"
85        android:zAdjustment="top">
86    <scale android:fromXScale="1.0" android:toXScale="2.0"
87           android:fromYScale="1.0" android:toYScale="2.0"
88           android:pivotX="100%p" android:pivotY="50%p"
89           android:duration="@android:integer/config_mediumAnimTime" />
90	<translate android:fromXDelta="0%" android:toXDelta="-100%"
91        android:duration="@android:integer/config_mediumAnimTime"/>
92</set>
93-->
94