wallpaper_open_enter.xml revision bf78275b2cb04eec22ec99f394c87e00b91e5235
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 back up. -->
21<set xmlns:android="http://schemas.android.com/apk/res/android"
22        android:interpolator="@anim/decelerate_interpolator"
23        android:detachWallpaper="true">
24    <scale android:fromXScale="0.8" android:toXScale="1.0"
25            android:fromYScale="0.8" android:toYScale="1.0"
26            android:pivotX="50%p" android:pivotY="50%p"
27            android:startOffset="@android:integer/config_mediumAnimTime"
28            android:duration="@android:integer/config_mediumAnimTime" />
29    <alpha android:fromAlpha="0" android:toAlpha="1.0"
30            android:interpolator="@anim/accelerate_decelerate_interpolator"
31            android:startOffset="@android:integer/config_mediumAnimTime"
32            android:duration="@android:integer/config_mediumAnimTime"/>
33</set>
34
35
36<!-- This version zooms the exiting non-wallpaper down in to the
37     wallpaper, without zooming the wallpaper itself. -->
38<!--
39<set xmlns:android="http://schemas.android.com/apk/res/android"
40        android:interpolator="@anim/decelerate_interpolator"
41        android:detachWallpaper="true">
42    <scale android:fromXScale="2.0" android:toXScale="1.0"
43           android:fromYScale="2.0" android:toYScale="1.0"
44           android:pivotX="50%p" android:pivotY="50%p"
45           android:duration="@android:integer/config_mediumAnimTime" />
46</set>
47-->
48
49<!-- This version zooms the new non-wallpaper down on top of the
50     wallpaper, without zooming the wallpaper itself. -->
51<!--
52<set xmlns:android="http://schemas.android.com/apk/res/android"
53        android:interpolator="@anim/decelerate_interpolator"
54        android:detachWallpaper="true">
55    <scale android:fromXScale=".5" android:toXScale="1.0"
56           android:fromYScale=".5" android:toYScale="1.0"
57           android:pivotX="50%p" android:pivotY="50%p"
58           android:duration="@android:integer/config_mediumAnimTime" />
59</set>
60-->
61
62<!-- This version zooms the new non-wallpaper up off the wallpaper the
63     wallpaper.  The wallpaper here just stays fixed behind. -->
64<!--
65<set xmlns:android="http://schemas.android.com/apk/res/android"
66        android:interpolator="@anim/decelerate_interpolator"
67        android:zAdjustment="top">
68    <scale android:fromXScale=".5" android:toXScale="1.0"
69           android:fromYScale=".5" android:toYScale="1.0"
70           android:pivotX="50%p" android:pivotY="50%p"
71           android:duration="@android:integer/config_mediumAnimTime" />
72    <alpha android:fromAlpha="0.0" android:toAlpha="1.0"
73            android:duration="@android:integer/config_mediumAnimTime"/>
74</set>
75-->
76
77<!-- This version is a variation on the inter-activity slide that
78    also scales the wallpaper. -->
79<!--
80<set xmlns:android="http://schemas.android.com/apk/res/android"
81        android:interpolator="@anim/decelerate_interpolator"
82        android:zAdjustment="top">
83    <scale android:fromXScale="2.0" android:toXScale="1.0"
84           android:fromYScale="2.0" android:toYScale="1.0"
85           android:pivotX="100%p" android:pivotY="50%p"
86           android:duration="@android:integer/config_mediumAnimTime" />
87	<translate android:fromXDelta="-100%" android:toXDelta="0"
88        android:duration="@android:integer/config_mediumAnimTime"/>
89</set>
90-->
91