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