From f2cd6130db411422f96817ee1843ce08217c6f60 Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Sat, 24 Apr 2021 00:26:45 +0800 Subject: [PATCH] Reduce the duration of rotation animation Make the rotation animation snappier. Bug: 178472794 Test: Rotate device Change-Id: If7826810b38dd28715d795a8eadbfe0742223cd7 --- core/res/res/anim/screen_rotate_180_enter.xml | 2 +- core/res/res/anim/screen_rotate_180_exit.xml | 2 +- .../res/anim/screen_rotate_minus_90_enter.xml | 2 +- .../res/anim/screen_rotate_minus_90_exit.xml | 2 +- .../res/anim/screen_rotate_plus_90_enter.xml | 2 +- .../res/anim/screen_rotate_plus_90_exit.xml | 2 +- core/res/res/interpolator/screen_rotation.xml | 22 +++++++++++++++++++ core/res/res/values/config.xml | 8 +++---- 8 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 core/res/res/interpolator/screen_rotation.xml diff --git a/core/res/res/anim/screen_rotate_180_enter.xml b/core/res/res/anim/screen_rotate_180_enter.xml index 3b6b4072dbcde..268775be99569 100644 --- a/core/res/res/anim/screen_rotate_180_enter.xml +++ b/core/res/res/anim/screen_rotate_180_enter.xml @@ -23,7 +23,7 @@ android:pivotX="50%" android:pivotY="50%" android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true" - android:interpolator="@interpolator/fast_out_slow_in" + android:interpolator="@interpolator/screen_rotation" android:duration="@android:integer/config_screen_rotation_total_180" /> + + + diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 46a1258543f7c..68cb29ab042b2 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -157,16 +157,16 @@ 116 - 233 + 200 - 100 + 83 - 333 + 283 - 433 + 383 200