gesture_tutorial_fragment.xml 8.8 KB

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