12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?xml version="1.0" encoding="utf-8"?>
- <!-- Copyright (C) 2021 The Android Open Source Project
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <androidx.constraintlayout.widget.ConstraintLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/bg_sandbox_feedback"
- android:paddingTop="24dp"
- android:paddingBottom="24dp"
- android:paddingStart="16dp"
- android:paddingEnd="16dp">
- <TextView
- android:id="@+id/gesture_tutorial_dialog_title"
- style="@style/TextAppearance.GestureTutorial.Dialog.Title"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:text="@string/skip_tutorial_dialog_title"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent"/>
- <TextView
- android:id="@+id/gesture_tutorial_dialog_subtitle"
- style="@style/TextAppearance.GestureTutorial.Dialog.Subtitle"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:text="@string/skip_tutorial_dialog_subtitle"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_dialog_title"/>
- <!-- android:stateListAnimator="@null" removes shadow and normal on click behavior (increase
- of elevation and shadow) which is replaced by ripple effect in android:foreground -->
- <Button
- android:id="@+id/gesture_tutorial_dialog_cancel_button"
- style="@style/TextAppearance.GestureTutorial.CancelButtonLabel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="46dp"
- android:paddingTop="8dp"
- android:paddingBottom="8dp"
- android:paddingStart="16dp"
- android:paddingEnd="16dp"
- android:background="@drawable/gesture_tutorial_cancel_button_background"
- android:foreground="?android:attr/selectableItemBackgroundBorderless"
- android:stateListAnimator="@null"
- android:text="@string/gesture_tutorial_action_button_label_cancel"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_dialog_subtitle"/>
- <Button
- android:id="@+id/gesture_tutorial_dialog_confirm_button"
- style="@style/TextAppearance.GestureTutorial.ButtonLabel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="46dp"
- android:paddingTop="8dp"
- android:paddingBottom="8dp"
- android:paddingStart="16dp"
- android:paddingEnd="16dp"
- android:background="@drawable/gesture_tutorial_action_button_background"
- android:foreground="?android:attr/selectableItemBackgroundBorderless"
- android:stateListAnimator="@null"
- android:text="@string/gesture_tutorial_action_button_label_skip"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_dialog_subtitle"/>
- </androidx.constraintlayout.widget.ConstraintLayout>
|