gesture_tutorial_dialog.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:background="@drawable/bg_sandbox_feedback"
  8. android:paddingTop="24dp"
  9. android:paddingBottom="24dp"
  10. android:paddingStart="16dp"
  11. android:paddingEnd="16dp">
  12. <TextView
  13. android:id="@+id/gesture_tutorial_dialog_title"
  14. style="@style/TextAppearance.GestureTutorial.Dialog.Title"
  15. android:layout_width="0dp"
  16. android:layout_height="wrap_content"
  17. android:text="@string/skip_tutorial_dialog_title"
  18. app:layout_constraintStart_toStartOf="parent"
  19. app:layout_constraintEnd_toEndOf="parent"
  20. app:layout_constraintTop_toTopOf="parent"/>
  21. <TextView
  22. android:id="@+id/gesture_tutorial_dialog_subtitle"
  23. style="@style/TextAppearance.GestureTutorial.Dialog.Subtitle"
  24. android:layout_width="0dp"
  25. android:layout_height="wrap_content"
  26. android:layout_marginTop="16dp"
  27. android:text="@string/skip_tutorial_dialog_subtitle"
  28. app:layout_constraintStart_toStartOf="parent"
  29. app:layout_constraintEnd_toEndOf="parent"
  30. app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_dialog_title"/>
  31. <!-- android:stateListAnimator="@null" removes shadow and normal on click behavior (increase
  32. of elevation and shadow) which is replaced by ripple effect in android:foreground -->
  33. <Button
  34. android:id="@+id/gesture_tutorial_dialog_cancel_button"
  35. style="@style/TextAppearance.GestureTutorial.CancelButtonLabel"
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:layout_marginTop="46dp"
  39. android:paddingTop="8dp"
  40. android:paddingBottom="8dp"
  41. android:paddingStart="16dp"
  42. android:paddingEnd="16dp"
  43. android:background="@drawable/gesture_tutorial_cancel_button_background"
  44. android:foreground="?android:attr/selectableItemBackgroundBorderless"
  45. android:stateListAnimator="@null"
  46. android:text="@string/gesture_tutorial_action_button_label_cancel"
  47. app:layout_constraintStart_toStartOf="parent"
  48. app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_dialog_subtitle"/>
  49. <Button
  50. android:id="@+id/gesture_tutorial_dialog_confirm_button"
  51. style="@style/TextAppearance.GestureTutorial.ButtonLabel"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:layout_marginTop="46dp"
  55. android:paddingTop="8dp"
  56. android:paddingBottom="8dp"
  57. android:paddingStart="16dp"
  58. android:paddingEnd="16dp"
  59. android:background="@drawable/gesture_tutorial_action_button_background"
  60. android:foreground="?android:attr/selectableItemBackgroundBorderless"
  61. android:stateListAnimator="@null"
  62. android:text="@string/gesture_tutorial_action_button_label_skip"
  63. app:layout_constraintEnd_toEndOf="parent"
  64. app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_dialog_subtitle"/>
  65. </androidx.constraintlayout.widget.ConstraintLayout>