From b1291e6ae23ea108f14fbea846710f25c967be34 Mon Sep 17 00:00:00 2001 From: Saumya Prakash Date: Tue, 31 Jan 2023 01:06:17 +0000 Subject: [PATCH] Redesign the tutorial for the go home gesture This change adds in a new animation and layout to change the existing home tutorial as part of the effort to redesign gesture navigation education for users. This temporarily uses placeholder animations for the back and overview gestures. Bug: 253521921 Bug: 241813570 Test: Manual Change-Id: Ifd2de68d995172765d17578cebfd0d88ab7c2e5a --- .../gesture_tutorial_complete_checkmark.xml | 23 ++ ...gesture_tutorial_complete_checkmark_bg.xml | 28 ++ .../redesigned_default_sandbox_app_icon.xml | 17 ++ .../redesigned_gesture_tutorial_fragment.xml | 244 ++++++++++++++++++ ...designed_gesture_tutorial_mock_hotseat.xml | 92 +++++++ .../swipe_up_gesture_tutorial_shape.xml | 19 ++ .../raw/home_gesture_tutorial_animation.json | 1 + quickstep/res/values/colors.xml | 7 + quickstep/res/values/strings.xml | 4 + quickstep/res/values/styles.xml | 25 ++ .../BackGestureTutorialController.java | 11 + .../HomeGestureTutorialController.java | 24 +- .../OverviewGestureTutorialController.java | 11 + .../interaction/TutorialController.java | 98 ++++++- .../interaction/TutorialFragment.java | 14 +- 15 files changed, 604 insertions(+), 14 deletions(-) create mode 100644 quickstep/res/drawable/gesture_tutorial_complete_checkmark.xml create mode 100644 quickstep/res/drawable/gesture_tutorial_complete_checkmark_bg.xml create mode 100644 quickstep/res/drawable/redesigned_default_sandbox_app_icon.xml create mode 100644 quickstep/res/layout/redesigned_gesture_tutorial_fragment.xml create mode 100644 quickstep/res/layout/redesigned_gesture_tutorial_mock_hotseat.xml create mode 100644 quickstep/res/layout/swipe_up_gesture_tutorial_shape.xml create mode 100644 quickstep/res/raw/home_gesture_tutorial_animation.json diff --git a/quickstep/res/drawable/gesture_tutorial_complete_checkmark.xml b/quickstep/res/drawable/gesture_tutorial_complete_checkmark.xml new file mode 100644 index 0000000000..254d6d5ce5 --- /dev/null +++ b/quickstep/res/drawable/gesture_tutorial_complete_checkmark.xml @@ -0,0 +1,23 @@ + + + + + diff --git a/quickstep/res/drawable/gesture_tutorial_complete_checkmark_bg.xml b/quickstep/res/drawable/gesture_tutorial_complete_checkmark_bg.xml new file mode 100644 index 0000000000..d6a6686766 --- /dev/null +++ b/quickstep/res/drawable/gesture_tutorial_complete_checkmark_bg.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + diff --git a/quickstep/res/drawable/redesigned_default_sandbox_app_icon.xml b/quickstep/res/drawable/redesigned_default_sandbox_app_icon.xml new file mode 100644 index 0000000000..cb94d9a8fc --- /dev/null +++ b/quickstep/res/drawable/redesigned_default_sandbox_app_icon.xml @@ -0,0 +1,17 @@ + + + + + diff --git a/quickstep/res/layout/redesigned_gesture_tutorial_fragment.xml b/quickstep/res/layout/redesigned_gesture_tutorial_fragment.xml new file mode 100644 index 0000000000..13b7238ceb --- /dev/null +++ b/quickstep/res/layout/redesigned_gesture_tutorial_fragment.xml @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +