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<FrameLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:theme="@style/GestureTutorialActivity" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:background="?androidprv:attr/materialColorSurfaceContainer" 24 android:fitsSystemWindows="true"> 25 26 <androidx.constraintlayout.widget.ConstraintLayout 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:paddingTop="@dimen/gesture_tutorial_menu_padding_top" 30 android:paddingBottom="@dimen/gesture_tutorial_menu_padding_bottom" 31 android:paddingHorizontal="@dimen/gesture_tutorial_menu_padding_horizontal" 32 android:clipToPadding="false"> 33 34 <androidx.constraintlayout.widget.ConstraintLayout 35 android:id="@+id/gesture_tutorial_menu_home_button" 36 android:layout_width="match_parent" 37 android:layout_height="@dimen/gesture_tutorial_menu_button_height" 38 android:background="@drawable/gesture_tutorial_menu_home_button_background" 39 android:clipToOutline="true" 40 app:layout_constraintVertical_chainStyle="packed" 41 42 app:layout_constraintTop_toTopOf="parent" 43 app:layout_constraintBottom_toTopOf="@id/gesture_tutorial_menu_back_button" 44 app:layout_constraintStart_toStartOf="parent" 45 app:layout_constraintEnd_toEndOf="parent"> 46 47 <ImageView 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:src="@drawable/gesture_tutorial_home_step_shape" 51 android:scaleType="fitXY" 52 android:adjustViewBounds="true" 53 54 app:layout_constraintBottom_toBottomOf="parent" 55 app:layout_constraintStart_toStartOf="parent" 56 app:layout_constraintEnd_toEndOf="parent"/> 57 58 <TextView 59 style="@style/TextAppearance.GestureTutorial.MenuButton.Home" 60 android:id="@+id/gesture_tutorial_menu_home_button_text" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:text="@string/home_gesture_tutorial_title" 64 65 app:layout_constraintTop_toTopOf="parent" 66 app:layout_constraintBottom_toBottomOf="parent" 67 app:layout_constraintStart_toStartOf="parent" 68 app:layout_constraintEnd_toEndOf="parent"/> 69 70 </androidx.constraintlayout.widget.ConstraintLayout> 71 72 <androidx.constraintlayout.widget.ConstraintLayout 73 android:id="@+id/gesture_tutorial_menu_back_button" 74 android:layout_width="match_parent" 75 android:layout_height="@dimen/gesture_tutorial_menu_button_height" 76 android:layout_marginTop="@dimen/gesture_tutorial_menu_button_spacing" 77 android:background="@drawable/gesture_tutorial_menu_back_button_background" 78 android:clipToOutline="true" 79 80 app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_menu_home_button" 81 app:layout_constraintBottom_toTopOf="@id/gesture_tutorial_menu_overview_button" 82 app:layout_constraintStart_toStartOf="parent" 83 app:layout_constraintEnd_toEndOf="parent"> 84 85 <ImageView 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:src="@drawable/gesture_tutorial_back_step_shape" 89 android:scaleType="fitXY" 90 android:adjustViewBounds="true" 91 92 app:layout_constraintTop_toTopOf="parent" 93 app:layout_constraintBottom_toBottomOf="parent" 94 app:layout_constraintStart_toStartOf="parent"/> 95 96 <TextView 97 style="@style/TextAppearance.GestureTutorial.MenuButton.Back" 98 android:id="@+id/gesture_tutorial_menu_back_button_text" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:text="@string/back_gesture_tutorial_title" 102 103 app:layout_constraintTop_toTopOf="parent" 104 app:layout_constraintBottom_toBottomOf="parent" 105 app:layout_constraintStart_toStartOf="parent" 106 app:layout_constraintEnd_toEndOf="parent"/> 107 108 </androidx.constraintlayout.widget.ConstraintLayout> 109 110 <androidx.constraintlayout.widget.ConstraintLayout 111 android:id="@+id/gesture_tutorial_menu_overview_button" 112 android:layout_width="match_parent" 113 android:layout_height="@dimen/gesture_tutorial_menu_button_height" 114 android:layout_marginTop="@dimen/gesture_tutorial_menu_button_spacing" 115 android:background="@drawable/gesture_tutorial_menu_overview_button_background" 116 android:clipToOutline="true" 117 118 app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_menu_back_button" 119 app:layout_constraintBottom_toTopOf="@id/guideline" 120 app:layout_constraintStart_toStartOf="parent" 121 app:layout_constraintEnd_toEndOf="parent"> 122 123 <ImageView 124 android:layout_width="wrap_content" 125 android:layout_height="wrap_content" 126 android:src="@drawable/gesture_tutorial_overview_step_shape" 127 android:scaleType="fitXY" 128 android:adjustViewBounds="true" 129 130 app:layout_constraintBottom_toBottomOf="parent" 131 app:layout_constraintStart_toStartOf="parent" 132 app:layout_constraintEnd_toEndOf="parent"/> 133 134 <TextView 135 style="@style/TextAppearance.GestureTutorial.MenuButton.Overview" 136 android:id="@+id/gesture_tutorial_menu_overview_button_text" 137 android:layout_width="wrap_content" 138 android:layout_height="wrap_content" 139 android:text="@string/overview_gesture_tutorial_title" 140 141 app:layout_constraintTop_toTopOf="parent" 142 app:layout_constraintBottom_toBottomOf="parent" 143 app:layout_constraintStart_toStartOf="parent" 144 app:layout_constraintEnd_toEndOf="parent"/> 145 146 </androidx.constraintlayout.widget.ConstraintLayout> 147 148 <androidx.constraintlayout.widget.Guideline 149 android:id="@+id/guideline" 150 android:layout_width="wrap_content" 151 android:layout_height="wrap_content" 152 android:orientation="horizontal" 153 154 app:layout_constraintGuide_end="@dimen/gesture_tutorial_menu_done_button_spacing"/> 155 156 <Button 157 style="@style/TextAppearance.GestureTutorial.ButtonLabel" 158 android:id="@+id/gesture_tutorial_menu_done_button" 159 android:layout_width="wrap_content" 160 android:layout_height="48dp" 161 android:layout_marginVertical="16dp" 162 android:text="@string/gesture_tutorial_action_button_label" 163 android:background="@drawable/gesture_tutorial_action_button_background" 164 android:backgroundTint="?androidprv:attr/materialColorPrimary" 165 android:stateListAnimator="@null" 166 167 app:layout_constraintTop_toBottomOf="@id/guideline" 168 app:layout_constraintBottom_toBottomOf="parent" 169 app:layout_constraintEnd_toEndOf="parent"/> 170 171 </androidx.constraintlayout.widget.ConstraintLayout> 172 173</FrameLayout>