Rough cut at new window animations.
Change-Id: I5c698de205d820b770e2405ea9d3d483b6b8a463
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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. -->
|
||||
|
||||
@@ -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. -->
|
||||
|
||||
@@ -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. -->
|
||||
|
||||
@@ -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. -->
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user