wallpaper_close_enter.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:shareInterpolator="false">
23    <scale android:fromXScale="1.0" android:toXScale="1.0"
24            android:fromYScale=".9" android:toYScale="1.0"
25            android:pivotX="50%p" android:pivotY="50%p"
26            android:fillEnabled="true" android:fillBefore="true"
27            android:interpolator="@anim/decelerate_quint_interpolator"
28            android:startOffset="@android:integer/config_mediumAnimTime"
29            android:duration="@android:integer/config_mediumAnimTime" />
30    <alpha android:fromAlpha="0" android:toAlpha="1.0"
31            android:fillEnabled="true" android:fillBefore="true"
32            android:interpolator="@anim/decelerate_quint_interpolator"
33            android:startOffset="@android:integer/config_mediumAnimTime"
34            android:duration="@android:integer/config_mediumAnimTime"/>
35</set>
36
37<!-- This version zooms the new non-wallpaper up out of the
38     wallpaper, without zooming the wallpaper itself. -->
39<!--
40<set xmlns:android="http://schemas.android.com/apk/res/android"
41        android:zAdjustment="top">
42    <scale android:fromXScale=".5" android:toXScale="1.0"
43           android:fromYScale=".5" android:toYScale="1.0"
44           android:pivotX="50%p" android:pivotY="50%p"
45           android:interpolator="@anim/decelerate_interpolator"
46           android:duration="@android:integer/config_mediumAnimTime" />
47    <alpha android:fromAlpha="0" android:toAlpha="1.0"
48           android:interpolator="@anim/accelerate_decelerate_interpolator"
49           android:duration="@android:integer/config_mediumAnimTime"/>
50</set>
51-->
52
53<!-- This version zooms the new non-wallpaper down on top of the
54     wallpaper, without zooming the wallpaper itself. -->
55<!--
56<set xmlns:android="http://schemas.android.com/apk/res/android"
57        android:interpolator="@anim/decelerate_interpolator"
58        android:zAdjustment="top">
59    <scale android:fromXScale="2.0" android:toXScale="1.0"
60           android:fromYScale="2.0" android:toYScale="1.0"
61           android:pivotX="50%p" android:pivotY="50%p"
62           android:duration="@android:integer/config_mediumAnimTime" />
63    <alpha android:fromAlpha="0" android:toAlpha="1.0"
64            android:duration="@android:integer/config_mediumAnimTime"/>
65</set>
66-->
67
68<!-- This version zooms the new non-wallpaper down on top of the
69     wallpaper. -->
70<!-- 
71<set xmlns:android="http://schemas.android.com/apk/res/android"
72        android:interpolator="@anim/decelerate_interpolator">
73    <scale android:fromXScale="2.0" android:toXScale="1.0"
74           android:fromYScale="2.0" android:toYScale="1.0"
75           android:pivotX="50%p" android:pivotY="50%p"
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	<translate android:fromXDelta="33%" android:toXDelta="0"
86        android:duration="@android:integer/config_mediumAnimTime"/>
87</set>
88-->
89