Change the default dialog animations

This CL changes the device default enter/exit dialog animations to match
go/motion-dialogs as much as possible. See b/217356408#comment1 and
 #comment2 for before/after videos.

Bug: 217356408
Test: Manual
Change-Id: I97cc993ea86bbe0e33e41cc7ad24c6a743ea0bdc
This commit is contained in:
Jordan Demeulenaere
2022-02-01 14:56:28 +01:00
parent fad1a8814f
commit fc77c016f4
2 changed files with 20 additions and 6 deletions

View File

@@ -16,7 +16,14 @@
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<alpha android:fromAlpha="0.0" android:toAlpha="1.0"
android:interpolator="@interpolator/decelerate_cubic"
android:duration="@android:integer/config_activityShortDur" />
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:interpolator="@interpolator/standard"
android:duration="@android:integer/config_activityDefaultDur" />
<translate
android:fromYDelta="20dp"
android:toYDelta="0"
android:interpolator="@interpolator/standard"
android:duration="@android:integer/config_activityDefaultDur" />
</set>

View File

@@ -16,7 +16,14 @@
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<alpha android:fromAlpha="1.0" android:toAlpha="0.0"
android:interpolator="@interpolator/decelerate_cubic"
android:duration="@android:integer/config_activityShortDur"/>
<alpha
android:fromAlpha="1.0"
android:toAlpha="0.0"
android:interpolator="@interpolator/standard_accelerate"
android:duration="@android:integer/config_activityShortDur" />
<translate
android:fromYDelta="0"
android:toYDelta="-10dp"
android:interpolator="@interpolator/standard_accelerate"
android:duration="@android:integer/config_activityShortDur" />
</set>