diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-02-09 12:03:04 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-02-09 12:03:04 +0000 |
| commit | 5075e557fd96cdacac61ba73db4e1f1e35175350 (patch) | |
| tree | 333723c6fb509bb05bfaa3e2aef72a6b22b4a08e /core | |
| parent | ebb1214db699e5661106d076a5e2a52b454c0edd (diff) | |
| parent | fc77c016f4c949d30c51ad0dd59adb6de49e968a (diff) | |
Merge "Change the default dialog animations"
Diffstat (limited to 'core')
| -rw-r--r-- | core/res/res/anim/popup_enter_material.xml | 13 | ||||
| -rw-r--r-- | core/res/res/anim/popup_exit_material.xml | 13 |
2 files changed, 20 insertions, 6 deletions
diff --git a/core/res/res/anim/popup_enter_material.xml b/core/res/res/anim/popup_enter_material.xml index 79de26ba144f..ef5b7c05191b 100644 --- a/core/res/res/anim/popup_enter_material.xml +++ b/core/res/res/anim/popup_enter_material.xml @@ -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> diff --git a/core/res/res/anim/popup_exit_material.xml b/core/res/res/anim/popup_exit_material.xml index 7d7d5c5468f9..1efa7021791e 100644 --- a/core/res/res/anim/popup_exit_material.xml +++ b/core/res/res/anim/popup_exit_material.xml @@ -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> |
