1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 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="wrap_content" 21 android:background="@drawable/bg_sandbox_feedback" 22 android:paddingTop="24dp" 23 android:paddingBottom="24dp" 24 android:paddingStart="16dp" 25 android:paddingEnd="16dp"> 26 27 <TextView 28 android:id="@+id/gesture_tutorial_dialog_title" 29 style="@style/TextAppearance.GestureTutorial.Dialog.Title" 30 android:layout_width="0dp" 31 android:layout_height="wrap_content" 32 android:text="@string/skip_tutorial_dialog_title" 33 34 app:layout_constraintStart_toStartOf="parent" 35 app:layout_constraintEnd_toEndOf="parent" 36 app:layout_constraintTop_toTopOf="parent"/> 37 38 <TextView 39 android:id="@+id/gesture_tutorial_dialog_subtitle" 40 style="@style/TextAppearance.GestureTutorial.Dialog.Subtitle" 41 android:layout_width="0dp" 42 android:layout_height="wrap_content" 43 android:layout_marginTop="16dp" 44 android:text="@string/skip_tutorial_dialog_subtitle" 45 46 app:layout_constraintStart_toStartOf="parent" 47 app:layout_constraintEnd_toEndOf="parent" 48 app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_dialog_title"/> 49 50 <!-- android:stateListAnimator="@null" removes shadow and normal on click behavior (increase 51 of elevation and shadow) which is replaced by ripple effect in android:foreground --> 52 <Button 53 android:id="@+id/gesture_tutorial_dialog_cancel_button" 54 style="@style/TextAppearance.GestureTutorial.CancelButtonLabel" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_marginTop="46dp" 58 android:paddingTop="8dp" 59 android:paddingBottom="8dp" 60 android:paddingStart="16dp" 61 android:paddingEnd="16dp" 62 android:background="@drawable/gesture_tutorial_cancel_button_background" 63 android:foreground="?android:attr/selectableItemBackgroundBorderless" 64 android:stateListAnimator="@null" 65 android:text="@string/gesture_tutorial_action_button_label_cancel" 66 67 app:layout_constraintStart_toStartOf="parent" 68 app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_dialog_subtitle"/> 69 70 <Button 71 android:id="@+id/gesture_tutorial_dialog_confirm_button" 72 style="@style/TextAppearance.GestureTutorial.ButtonLabel" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:layout_marginTop="46dp" 76 android:paddingTop="8dp" 77 android:paddingBottom="8dp" 78 android:paddingStart="16dp" 79 android:paddingEnd="16dp" 80 android:background="@drawable/gesture_tutorial_action_button_background" 81 android:foreground="?android:attr/selectableItemBackgroundBorderless" 82 android:stateListAnimator="@null" 83 android:text="@string/gesture_tutorial_action_button_label_skip" 84 85 app:layout_constraintEnd_toEndOf="parent" 86 app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_dialog_subtitle"/> 87 88</androidx.constraintlayout.widget.ConstraintLayout>