From 72be60694f5aa31aa39d4873289888795ee77dd7 Mon Sep 17 00:00:00 2001 From: Saumya Prakash Date: Thu, 9 May 2024 23:16:22 +0000 Subject: [PATCH] Move the Done button in gesture navigation tutorial To align with updated UX specs, this change moves the Done button in each gesture's tutorial from the middle of the screen to the bottom right. Fix: 293285057 Test: Run through the gesture tutorial in all font/display sizes for different form factors and check that the Done button after each step is in the new location. Flag: LEGACY ENABLE_NEW_GESTURE_NAV_TUTORIAL ENABLED Change-Id: I2f2a7be0bf365727cff030f827e539add8533c18 (cherry picked from commit b8782e734122fffd5c2678a022c6de43f54f978f) Merged-In: I2f2a7be0bf365727cff030f827e539add8533c18 --- .../redesigned_gesture_tutorial_fragment.xml | 38 ++++++++++--------- quickstep/res/values/dimens.xml | 2 + 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/quickstep/res/layout/redesigned_gesture_tutorial_fragment.xml b/quickstep/res/layout/redesigned_gesture_tutorial_fragment.xml index a1bcad0a7c..b004dfda6a 100644 --- a/quickstep/res/layout/redesigned_gesture_tutorial_fragment.xml +++ b/quickstep/res/layout/redesigned_gesture_tutorial_fragment.xml @@ -134,11 +134,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" + android:layout_above="@id/gesture_tutorial_fragment_action_button" android:layout_centerHorizontal="true" android:background="@android:color/transparent" - android:paddingEnd="24dp" - android:paddingStart="24dp" - android:paddingTop="24dp"> + android:paddingTop="24dp" + android:paddingHorizontal="24dp" + android:layout_marginBottom="16dp"> @@ -193,7 +194,7 @@ android:id="@+id/checkmark_animation" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginBottom="44dp" + android:layout_marginBottom="28dp" android:gravity="center" android:scaleType="centerCrop" app:lottie_loop="false" @@ -204,19 +205,6 @@ app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_fragment_feedback_subtitle" app:layout_constraintBottom_toBottomOf="parent" /> -