From 49fa185147592e971749d62e1c7cf3db2abf1afb Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Wed, 15 Sep 2021 18:43:51 +0000 Subject: [PATCH] Update task transition animations Following designs from go/android-new-task-motion Test: atest FlickerTests:TaskTransitionTest Bug: 199507257 Change-Id: I037517d930e3425dc22ebab6f5df1968ebba5483 --- .../cross_profile_apps_thumbnail_enter.xml | 48 ++-------------- core/res/res/anim-ldrtl/task_close_enter.xml | 51 +++-------------- core/res/res/anim-ldrtl/task_close_exit.xml | 35 ++---------- core/res/res/anim-ldrtl/task_open_enter.xml | 53 +++--------------- .../task_open_enter_cross_profile_apps.xml | 53 +++--------------- core/res/res/anim-ldrtl/task_open_exit.xml | 35 ++---------- .../cross_profile_apps_thumbnail_enter.xml | 46 ++-------------- core/res/res/anim/task_close_enter.xml | 51 +++-------------- core/res/res/anim/task_close_exit.xml | 35 ++---------- core/res/res/anim/task_open_enter.xml | 55 +++---------------- .../task_open_enter_cross_profile_apps.xml | 51 +++-------------- core/res/res/anim/task_open_exit.xml | 35 ++---------- core/res/res/color/overview_background.xml | 19 +++++++ .../res/color/overview_background_dark.xml | 19 +++++++ core/res/res/values-night/colors.xml | 2 + 15 files changed, 121 insertions(+), 467 deletions(-) create mode 100644 core/res/res/color/overview_background.xml create mode 100644 core/res/res/color/overview_background_dark.xml diff --git a/core/res/res/anim-ldrtl/cross_profile_apps_thumbnail_enter.xml b/core/res/res/anim-ldrtl/cross_profile_apps_thumbnail_enter.xml index 5add19bba51b5..941df96cb9417 100644 --- a/core/res/res/anim-ldrtl/cross_profile_apps_thumbnail_enter.xml +++ b/core/res/res/anim-ldrtl/cross_profile_apps_thumbnail_enter.xml @@ -18,19 +18,10 @@ --> - - + android:zAdjustment="top" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> - - + android:shareInterpolator="false" + android:zAdjustment="top" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> \ No newline at end of file diff --git a/core/res/res/anim-ldrtl/task_close_exit.xml b/core/res/res/anim-ldrtl/task_close_exit.xml index 71a44ae7d2fcf..8c0aaa8174300 100644 --- a/core/res/res/anim-ldrtl/task_close_exit.xml +++ b/core/res/res/anim-ldrtl/task_close_exit.xml @@ -15,19 +15,9 @@ --> - - + android:shareInterpolator="false" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> - - + android:shareInterpolator="false" + android:zAdjustment="top" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - - - - \ No newline at end of file + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> + diff --git a/core/res/res/anim-ldrtl/task_open_enter_cross_profile_apps.xml b/core/res/res/anim-ldrtl/task_open_enter_cross_profile_apps.xml index 5fccd6df14a57..69631f6525e30 100644 --- a/core/res/res/anim-ldrtl/task_open_enter_cross_profile_apps.xml +++ b/core/res/res/anim-ldrtl/task_open_enter_cross_profile_apps.xml @@ -16,20 +16,10 @@ --> - - + android:shareInterpolator="false" + android:zAdjustment="top" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> @@ -75,4 +38,4 @@ android:toAlpha="1.0" android:startOffset="717" android:duration="200"/> - \ No newline at end of file + diff --git a/core/res/res/anim-ldrtl/task_open_exit.xml b/core/res/res/anim-ldrtl/task_open_exit.xml index 025e1bdc05c95..f455334ced788 100644 --- a/core/res/res/anim-ldrtl/task_open_exit.xml +++ b/core/res/res/anim-ldrtl/task_open_exit.xml @@ -15,19 +15,9 @@ --> - - + android:shareInterpolator="false" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> - - + android:background="@color/overview_background"> - - - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> - - + android:shareInterpolator="false" + android:zAdjustment="top" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> \ No newline at end of file diff --git a/core/res/res/anim/task_close_exit.xml b/core/res/res/anim/task_close_exit.xml index afc3256cb6173..4b1e89ca0e3a7 100644 --- a/core/res/res/anim/task_close_exit.xml +++ b/core/res/res/anim/task_close_exit.xml @@ -17,19 +17,9 @@ --> - - + android:shareInterpolator="false" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> - - + + - - + android:shareInterpolator="false" + android:zAdjustment="top" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> \ No newline at end of file diff --git a/core/res/res/anim/task_open_enter_cross_profile_apps.xml b/core/res/res/anim/task_open_enter_cross_profile_apps.xml index 702f7ba162aae..dc316ff20f940 100644 --- a/core/res/res/anim/task_open_enter_cross_profile_apps.xml +++ b/core/res/res/anim/task_open_enter_cross_profile_apps.xml @@ -18,20 +18,10 @@ --> - - + android:shareInterpolator="false" + android:zAdjustment="top" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> diff --git a/core/res/res/anim/task_open_exit.xml b/core/res/res/anim/task_open_exit.xml index 691317d2e6e01..f8ab65517d5a2 100644 --- a/core/res/res/anim/task_open_exit.xml +++ b/core/res/res/anim/task_open_exit.xml @@ -17,19 +17,9 @@ --> - - + android:shareInterpolator="false" + android:hasRoundedCorners="true" + android:background="@color/overview_background"> - - + android:interpolator="@interpolator/fast_out_extra_slow_in" + android:startOffset="0" + android:duration="500"/> + + + + \ No newline at end of file diff --git a/core/res/res/color/overview_background_dark.xml b/core/res/res/color/overview_background_dark.xml new file mode 100644 index 0000000000000..84f4fdff4e1ad --- /dev/null +++ b/core/res/res/color/overview_background_dark.xml @@ -0,0 +1,19 @@ + + + + + \ No newline at end of file diff --git a/core/res/res/values-night/colors.xml b/core/res/res/values-night/colors.xml index 2e4578c394309..783fabe20a6d7 100644 --- a/core/res/res/values-night/colors.xml +++ b/core/res/res/values-night/colors.xml @@ -33,4 +33,6 @@ #5DBA80 #8AB4F8 + + @color/overview_background_dark