1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2023 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<androidx.constraintlayout.widget.ConstraintLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:paddingTop="@dimen/gesture_tutorial_menu_padding_top" 22 android:paddingBottom="@dimen/gesture_tutorial_menu_padding_bottom" 23 android:paddingHorizontal="@dimen/gesture_tutorial_menu_padding_horizontal" 24 android:background="@color/gesture_tutorial_menu_background" 25 android:clipToPadding="false"> 26 27 <androidx.constraintlayout.widget.ConstraintLayout 28 android:id="@+id/gesture_tutorial_menu_home_button" 29 android:layout_width="match_parent" 30 android:layout_height="@dimen/gesture_tutorial_menu_button_height" 31 android:background="@drawable/gesture_tutorial_menu_button_background" 32 android:clipToOutline="true" 33 android:backgroundTint="@color/gesture_home_tutorial_background" 34 app:layout_constraintVertical_chainStyle="packed" 35 36 app:layout_constraintTop_toTopOf="parent" 37 app:layout_constraintBottom_toTopOf="@id/gesture_tutorial_menu_back_button" 38 app:layout_constraintStart_toStartOf="parent" 39 app:layout_constraintEnd_toEndOf="parent"> 40 41 <ImageView 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:src="@drawable/gesture_tutorial_home_step_shape" 45 46 app:layout_constraintBottom_toBottomOf="parent" 47 app:layout_constraintStart_toStartOf="parent" 48 app:layout_constraintEnd_toEndOf="parent"/> 49 50 <TextView 51 style="@style/TextAppearance.GestureTutorial.MenuButton" 52 android:id="@+id/gesture_tutorial_menu_home_button_text" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:text="@string/home_gesture_tutorial_title" 56 57 app:layout_constraintTop_toTopOf="parent" 58 app:layout_constraintBottom_toBottomOf="parent" 59 app:layout_constraintStart_toStartOf="parent" 60 app:layout_constraintEnd_toEndOf="parent"/> 61 62 </androidx.constraintlayout.widget.ConstraintLayout> 63 64 <androidx.constraintlayout.widget.ConstraintLayout 65 android:id="@+id/gesture_tutorial_menu_back_button" 66 android:layout_width="match_parent" 67 android:layout_height="@dimen/gesture_tutorial_menu_button_height" 68 android:layout_marginTop="@dimen/gesture_tutorial_menu_button_spacing" 69 android:background="@drawable/gesture_tutorial_menu_button_background" 70 android:clipToOutline="true" 71 android:backgroundTint="@color/gesture_back_tutorial_exiting_app" 72 73 app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_menu_home_button" 74 app:layout_constraintBottom_toTopOf="@id/gesture_tutorial_menu_overview_button" 75 app:layout_constraintStart_toStartOf="parent" 76 app:layout_constraintEnd_toEndOf="parent"> 77 78 <ImageView 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:src="@drawable/gesture_tutorial_back_step_shape" 82 83 app:layout_constraintTop_toTopOf="parent" 84 app:layout_constraintBottom_toBottomOf="parent" 85 app:layout_constraintStart_toStartOf="parent"/> 86 87 <TextView 88 style="@style/TextAppearance.GestureTutorial.MenuButton" 89 android:id="@+id/gesture_tutorial_menu_back_button_text" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:text="@string/back_gesture_tutorial_title" 93 94 app:layout_constraintTop_toTopOf="parent" 95 app:layout_constraintBottom_toBottomOf="parent" 96 app:layout_constraintStart_toStartOf="parent" 97 app:layout_constraintEnd_toEndOf="parent"/> 98 99 </androidx.constraintlayout.widget.ConstraintLayout> 100 101 <androidx.constraintlayout.widget.ConstraintLayout 102 android:id="@+id/gesture_tutorial_menu_overview_button" 103 android:layout_width="match_parent" 104 android:layout_height="@dimen/gesture_tutorial_menu_button_height" 105 android:layout_marginTop="@dimen/gesture_tutorial_menu_button_spacing" 106 android:background="@drawable/gesture_tutorial_menu_button_background" 107 android:clipToOutline="true" 108 android:backgroundTint="@color/gesture_overview_tutorial_background" 109 110 app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_menu_back_button" 111 app:layout_constraintBottom_toTopOf="@id/guideline" 112 app:layout_constraintStart_toStartOf="parent" 113 app:layout_constraintEnd_toEndOf="parent"> 114 115 <ImageView 116 android:layout_width="wrap_content" 117 android:layout_height="wrap_content" 118 android:src="@drawable/gesture_tutorial_overview_step_shape" 119 120 app:layout_constraintBottom_toBottomOf="parent" 121 app:layout_constraintStart_toStartOf="parent" 122 app:layout_constraintEnd_toEndOf="parent"/> 123 124 <TextView 125 style="@style/TextAppearance.GestureTutorial.MenuButton" 126 android:id="@+id/gesture_tutorial_menu_overview_button_text" 127 android:layout_width="wrap_content" 128 android:layout_height="wrap_content" 129 android:text="@string/overview_gesture_tutorial_title" 130 131 app:layout_constraintTop_toTopOf="parent" 132 app:layout_constraintBottom_toBottomOf="parent" 133 app:layout_constraintStart_toStartOf="parent" 134 app:layout_constraintEnd_toEndOf="parent"/> 135 136 </androidx.constraintlayout.widget.ConstraintLayout> 137 138 <androidx.constraintlayout.widget.Guideline 139 android:id="@+id/guideline" 140 android:layout_width="wrap_content" 141 android:layout_height="wrap_content" 142 android:orientation="horizontal" 143 144 app:layout_constraintGuide_end="@dimen/gesture_tutorial_menu_done_button_spacing"/> 145 146 <Button 147 style="@style/TextAppearance.GestureTutorial.ButtonLabel" 148 android:id="@+id/gesture_tutorial_menu_done_button" 149 android:layout_width="wrap_content" 150 android:layout_height="wrap_content" 151 android:paddingVertical="16dp" 152 android:paddingHorizontal="26dp" 153 android:text="@string/gesture_tutorial_action_button_label" 154 android:background="@drawable/gesture_tutorial_action_button_background" 155 android:stateListAnimator="@null" 156 157 app:layout_constraintTop_toBottomOf="@id/guideline" 158 app:layout_constraintBottom_toBottomOf="parent" 159 app:layout_constraintEnd_toEndOf="parent"/> 160 161</androidx.constraintlayout.widget.ConstraintLayout>