gesture_tutorial_fragment.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. <FrameLayout
  24. android:id="@+id/gesture_tutorial_fake_hotseat_view"
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:layout_centerHorizontal="true"
  28. android:layout_alignParentBottom="true"/>
  29. </RelativeLayout>
  30. <com.android.launcher3.views.ClipIconView
  31. android:id="@+id/gesture_tutorial_fake_icon_view"
  32. android:layout_width="20dp"
  33. android:layout_height="20dp"
  34. android:visibility="invisible" />
  35. <com.android.quickstep.interaction.AnimatedTaskView
  36. android:id="@+id/gesture_tutorial_fake_previous_task_view"
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:scaleX="0.98"
  40. android:scaleY="0.98"
  41. android:visibility="invisible">
  42. <View
  43. android:id="@+id/full_task_view"
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent"
  46. android:visibility="invisible"
  47. app:layout_constraintTop_toTopOf="parent"
  48. app:layout_constraintBottom_toBottomOf="parent"
  49. app:layout_constraintStart_toStartOf="parent"
  50. app:layout_constraintEnd_toEndOf="parent"/>
  51. <androidx.cardview.widget.CardView
  52. android:id="@+id/top_task_view"
  53. android:layout_width="match_parent"
  54. android:layout_height="0dp"
  55. android:visibility="invisible"
  56. android:layout_marginBottom="@dimen/gesture_tutorial_multi_row_task_view_spacing"
  57. app:cardElevation="0dp"
  58. app:cardCornerRadius="@dimen/gesture_tutorial_small_task_view_corner_radius"
  59. app:layout_constraintVertical_chainStyle="spread"
  60. app:layout_constraintTop_toTopOf="@id/full_task_view"
  61. app:layout_constraintBottom_toTopOf="@id/bottom_task_view"
  62. app:layout_constraintStart_toStartOf="parent"
  63. app:layout_constraintEnd_toEndOf="parent"/>
  64. <androidx.cardview.widget.CardView
  65. android:id="@+id/bottom_task_view"
  66. android:layout_width="match_parent"
  67. android:layout_height="0dp"
  68. android:visibility="invisible"
  69. app:cardElevation="0dp"
  70. app:cardCornerRadius="@dimen/gesture_tutorial_small_task_view_corner_radius"
  71. app:layout_constraintTop_toBottomOf="@id/top_task_view"
  72. app:layout_constraintBottom_toBottomOf="@id/full_task_view"
  73. app:layout_constraintStart_toStartOf="parent"
  74. app:layout_constraintEnd_toEndOf="parent"/>
  75. </com.android.quickstep.interaction.AnimatedTaskView>
  76. <FrameLayout
  77. android:id="@+id/gesture_tutorial_fake_task_view"
  78. android:layout_width="match_parent"
  79. android:layout_height="match_parent"
  80. android:visibility="visible" />
  81. <View
  82. android:id="@+id/gesture_tutorial_ripple_view"
  83. android:layout_width="match_parent"
  84. android:layout_height="match_parent"
  85. android:background="@drawable/gesture_tutorial_ripple"/>
  86. <include
  87. layout="@layout/gesture_tutorial_foldable_mock_taskbar"
  88. android:id="@+id/gesture_tutorial_fake_taskbar_view"
  89. android:layout_width="match_parent"
  90. android:layout_height="@dimen/gesture_tutorial_mock_taskbar_height"
  91. android:layout_alignParentBottom="true"
  92. android:layout_alignParentStart="true"
  93. android:layout_alignParentEnd="true" />
  94. <ImageView
  95. android:id="@+id/gesture_tutorial_edge_gesture_video"
  96. android:layout_width="match_parent"
  97. android:layout_height="match_parent"
  98. android:layout_alignParentTop="true"
  99. android:layout_alignParentBottom="true"
  100. android:layout_alignParentStart="true"
  101. android:layout_alignParentEnd="true"
  102. android:scaleType="fitXY"
  103. android:visibility="gone"/>
  104. <ImageView
  105. android:id="@+id/gesture_tutorial_finger_dot"
  106. android:layout_width="wrap_content"
  107. android:layout_height="wrap_content"
  108. android:src="@drawable/gesture_tutorial_finger_dot"
  109. android:layout_centerHorizontal="true"
  110. android:layout_centerVertical="true"
  111. android:visibility="gone"/>
  112. <androidx.constraintlayout.widget.ConstraintLayout
  113. android:id="@+id/gesture_tutorial_fragment_feedback_view"
  114. android:layout_width="match_parent"
  115. android:layout_height="wrap_content"
  116. android:layout_alignParentTop="true"
  117. android:layout_centerHorizontal="true"
  118. android:layout_marginTop="24dp"
  119. android:paddingTop="24dp"
  120. android:paddingBottom="16dp"
  121. android:background="@drawable/bg_sandbox_feedback">
  122. <TextView
  123. android:id="@+id/gesture_tutorial_fragment_feedback_title"
  124. style="@style/TextAppearance.GestureTutorial.Feedback.Title"
  125. android:layout_width="0dp"
  126. android:layout_height="wrap_content"
  127. android:layout_marginStart="24dp"
  128. android:layout_marginEnd="24dp"
  129. app:layout_constraintStart_toStartOf="parent"
  130. app:layout_constraintEnd_toEndOf="parent"
  131. app:layout_constraintTop_toTopOf="parent"/>
  132. <TextView
  133. android:id="@+id/gesture_tutorial_fragment_feedback_subtitle"
  134. style="@style/TextAppearance.GestureTutorial.Feedback.Subtitle"
  135. android:layout_width="0dp"
  136. android:layout_height="wrap_content"
  137. android:layout_marginTop="24dp"
  138. android:layout_marginStart="24dp"
  139. android:layout_marginEnd="24dp"
  140. app:layout_constraintStart_toStartOf="parent"
  141. app:layout_constraintEnd_toEndOf="parent"
  142. app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_fragment_feedback_title"/>
  143. <com.android.quickstep.interaction.TutorialStepIndicator
  144. android:id="@+id/gesture_tutorial_fragment_feedback_tutorial_step"
  145. android:layout_width="wrap_content"
  146. android:layout_height="wrap_content"
  147. app:layout_constraintStart_toStartOf="parent"
  148. app:layout_constraintEnd_toEndOf="parent"
  149. app:layout_constraintTop_toTopOf="@id/gesture_tutorial_fragment_action_button"
  150. app:layout_constraintBottom_toBottomOf="@id/gesture_tutorial_fragment_action_button"/>
  151. <Button
  152. android:id="@+id/gesture_tutorial_fragment_action_button"
  153. style="@style/TextAppearance.GestureTutorial.ButtonLabel"
  154. android:layout_width="wrap_content"
  155. android:layout_height="wrap_content"
  156. android:layout_marginTop="32dp"
  157. android:layout_marginEnd="16dp"
  158. android:paddingTop="16dp"
  159. android:paddingBottom="16dp"
  160. android:paddingStart="26dp"
  161. android:paddingEnd="26dp"
  162. android:text="@string/gesture_tutorial_action_button_label"
  163. android:background="@drawable/gesture_tutorial_action_button_background"
  164. android:stateListAnimator="@null"
  165. android:visibility="invisible"
  166. app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_fragment_feedback_subtitle"
  167. app:layout_constraintEnd_toEndOf="parent"/>
  168. <Button
  169. style="@style/TextAppearance.GestureTutorial.Feedback.Subtext"
  170. android:id="@+id/gesture_tutorial_fragment_close_button"
  171. android:layout_width="wrap_content"
  172. android:layout_height="wrap_content"
  173. android:layout_marginTop="32dp"
  174. android:layout_marginEnd="16dp"
  175. android:paddingTop="16dp"
  176. android:paddingBottom="16dp"
  177. android:paddingStart="26dp"
  178. android:paddingEnd="26dp"
  179. android:text="@string/gesture_tutorial_action_button_label_skip"
  180. android:background="?android:attr/selectableItemBackgroundBorderless"
  181. app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_fragment_feedback_subtitle"
  182. app:layout_constraintStart_toStartOf="parent"/>
  183. </androidx.constraintlayout.widget.ConstraintLayout>
  184. </com.android.quickstep.interaction.RootSandboxLayout>