From 9ebb08d22e8598eb6dc676a24bd34068cdc7a745 Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Wed, 1 Dec 2021 14:22:13 +0100 Subject: [PATCH] Update default activity animations For T we will be using the cross fade animation proposed in go/t-activity-transitions (https://direct.googleplex.com/#/spec/241720001&247800001) - this is what we are implemented here This animation only works properly if shell transitions are enabled as it uses the edgeExtension effect currently only implemented in shell Test: atest FlickerTests Bug: 202844659 Change-Id: Ibb863815b8a25f8d6ad0201203f7d550948f7158 --- core/res/res/anim/activity_close_enter.xml | 37 +++++++++++++++++----- core/res/res/anim/activity_close_exit.xml | 37 ++++++++++++++-------- core/res/res/anim/activity_open_enter.xml | 29 +++++++++++------ core/res/res/anim/activity_open_exit.xml | 37 ++++++++++++++-------- 4 files changed, 96 insertions(+), 44 deletions(-) diff --git a/core/res/res/anim/activity_close_enter.xml b/core/res/res/anim/activity_close_enter.xml index 9fa7c5498ea6c..0fefb5113dfcf 100644 --- a/core/res/res/anim/activity_close_enter.xml +++ b/core/res/res/anim/activity_close_enter.xml @@ -19,16 +19,37 @@ - + + + android:startOffset="0" + android:duration="450" /> + + \ No newline at end of file diff --git a/core/res/res/anim/activity_close_exit.xml b/core/res/res/anim/activity_close_exit.xml index 1599ae8cb19fc..f807c26dda200 100644 --- a/core/res/res/anim/activity_close_exit.xml +++ b/core/res/res/anim/activity_close_exit.xml @@ -18,27 +18,38 @@ --> + android:shareInterpolator="false"> + - + + + android:startOffset="0" + android:duration="450" /> + + diff --git a/core/res/res/anim/activity_open_enter.xml b/core/res/res/anim/activity_open_enter.xml index 38d3e8ed06ce9..1674dab3040a3 100644 --- a/core/res/res/anim/activity_open_enter.xml +++ b/core/res/res/anim/activity_open_enter.xml @@ -18,6 +18,7 @@ + - + + + android:duration="450" /> + + diff --git a/core/res/res/anim/activity_open_exit.xml b/core/res/res/anim/activity_open_exit.xml index 3865d2149f42f..372f2c8e09f66 100644 --- a/core/res/res/anim/activity_open_exit.xml +++ b/core/res/res/anim/activity_open_exit.xml @@ -19,27 +19,36 @@ - + android:interpolator="@interpolator/standard_accelerate" + android:startOffset="0" + android:duration="450" /> - + android:startOffset="0" + android:duration="450" /> + + \ No newline at end of file