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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user