gesture_tutorial_fragment.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <!--
  2. Copyright (C) 2020 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <com.android.quickstep.interaction.RootSandboxLayout
  14. xmlns:android="http://schemas.android.com/apk/res/android"
  15. xmlns:app="http://schemas.android.com/apk/res-auto"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:clipChildren="false">
  19. <RelativeLayout
  20. android:id="@+id/gesture_tutorial_fake_launcher_view"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent">
  23. <ImageView
  24. android:id="@+id/gesture_tutorial_fake_hotseat_view"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_centerHorizontal="true"
  28. android:layout_alignParentBottom="true"
  29. android:layout_marginBottom="70dp"/>
  30. </RelativeLayout>
  31. <com.android.launcher3.views.ClipIconView
  32. android:id="@+id/gesture_tutorial_fake_icon_view"
  33. android:layout_width="20dp"
  34. android:layout_height="20dp"
  35. android:visibility="invisible" />
  36. <View
  37. android:id="@+id/gesture_tutorial_fake_previous_task_view"
  38. android:layout_width="match_parent"
  39. android:layout_height="match_parent"
  40. android:scaleX="0.98"
  41. android:scaleY="0.98"
  42. android:visibility="invisible" />
  43. <View
  44. android:id="@+id/gesture_tutorial_fake_task_view"
  45. android:layout_width="match_parent"
  46. android:layout_height="match_parent"
  47. android:visibility="visible" />
  48. <View
  49. android:id="@+id/gesture_tutorial_ripple_view"
  50. android:layout_width="match_parent"
  51. android:layout_height="match_parent"
  52. android:background="@drawable/gesture_tutorial_ripple"/>
  53. <ImageView
  54. android:id="@+id/gesture_tutorial_feedback_video"
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. android:layout_alignParentTop="true"
  58. android:layout_alignParentBottom="true"
  59. android:layout_alignParentStart="true"
  60. android:layout_alignParentEnd="true"
  61. android:scaleType="fitXY"
  62. android:visibility="gone"/>
  63. <ImageView
  64. android:id="@+id/gesture_tutorial_gesture_video"
  65. android:layout_width="match_parent"
  66. android:layout_height="match_parent"
  67. android:layout_alignParentTop="true"
  68. android:layout_alignParentBottom="true"
  69. android:layout_alignParentStart="true"
  70. android:layout_alignParentEnd="true"
  71. android:scaleType="fitXY"
  72. android:visibility="gone"/>
  73. <androidx.constraintlayout.widget.ConstraintLayout
  74. android:id="@+id/gesture_tutorial_fragment_feedback_view"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:layout_alignParentTop="true"
  78. android:layout_centerHorizontal="true"
  79. android:layout_marginStart="@dimen/gesture_tutorial_feedback_margin_start_end"
  80. android:layout_marginEnd="@dimen/gesture_tutorial_feedback_margin_start_end"
  81. android:layout_marginTop="24dp"
  82. android:paddingTop="24dp"
  83. android:paddingBottom="16dp"
  84. android:background="@drawable/bg_sandbox_feedback">
  85. <TextView
  86. android:id="@+id/gesture_tutorial_fragment_feedback_title"
  87. style="@style/TextAppearance.GestureTutorial.Feedback.Title"
  88. android:layout_width="0dp"
  89. android:layout_height="wrap_content"
  90. android:layout_marginStart="24dp"
  91. android:layout_marginEnd="24dp"
  92. app:layout_constraintStart_toStartOf="parent"
  93. app:layout_constraintEnd_toEndOf="parent"
  94. app:layout_constraintTop_toTopOf="parent"/>
  95. <TextView
  96. android:id="@+id/gesture_tutorial_fragment_feedback_subtitle"
  97. style="@style/TextAppearance.GestureTutorial.Feedback.Subtitle"
  98. android:layout_width="0dp"
  99. android:layout_height="wrap_content"
  100. android:layout_marginTop="24dp"
  101. android:layout_marginStart="24dp"
  102. android:layout_marginEnd="24dp"
  103. app:layout_constraintStart_toStartOf="parent"
  104. app:layout_constraintEnd_toEndOf="parent"
  105. app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_fragment_feedback_title"/>
  106. <com.android.quickstep.interaction.TutorialStepIndicator
  107. android:id="@+id/gesture_tutorial_fragment_feedback_tutorial_step"
  108. android:layout_width="wrap_content"
  109. android:layout_height="wrap_content"
  110. app:layout_constraintStart_toStartOf="parent"
  111. app:layout_constraintEnd_toEndOf="parent"
  112. app:layout_constraintTop_toTopOf="@id/gesture_tutorial_fragment_action_button"
  113. app:layout_constraintBottom_toBottomOf="@id/gesture_tutorial_fragment_action_button"/>
  114. <Button
  115. android:id="@+id/gesture_tutorial_fragment_action_button"
  116. style="@style/TextAppearance.GestureTutorial.ButtonLabel"
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:layout_marginTop="32dp"
  120. android:layout_marginEnd="16dp"
  121. android:paddingTop="16dp"
  122. android:paddingBottom="16dp"
  123. android:paddingStart="26dp"
  124. android:paddingEnd="26dp"
  125. android:text="@string/gesture_tutorial_action_button_label"
  126. android:background="@drawable/gesture_tutorial_action_button_background"
  127. android:stateListAnimator="@null"
  128. android:visibility="invisible"
  129. app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_fragment_feedback_subtitle"
  130. app:layout_constraintEnd_toEndOf="parent"/>
  131. <Button
  132. style="@style/TextAppearance.GestureTutorial.Feedback.Subtext"
  133. android:id="@+id/gesture_tutorial_fragment_close_button"
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_marginTop="32dp"
  137. android:layout_marginEnd="16dp"
  138. android:paddingTop="16dp"
  139. android:paddingBottom="16dp"
  140. android:paddingStart="26dp"
  141. android:paddingEnd="26dp"
  142. android:text="@string/gesture_tutorial_action_button_label_skip"
  143. android:background="?android:attr/selectableItemBackgroundBorderless"
  144. app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_fragment_feedback_subtitle"
  145. app:layout_constraintStart_toStartOf="parent"/>
  146. </androidx.constraintlayout.widget.ConstraintLayout>
  147. </com.android.quickstep.interaction.RootSandboxLayout>