taskbar_edu.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2021 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.launcher3.taskbar.TaskbarEduView xmlns:android="http://schemas.android.com/apk/res/android"
  14. xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
  15. xmlns:app="http://schemas.android.com/apk/res-auto"
  16. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:layout_gravity="bottom"
  20. android:gravity="bottom"
  21. android:orientation="vertical"
  22. android:layout_marginHorizontal="108dp">
  23. <androidx.constraintlayout.widget.ConstraintLayout
  24. android:id="@+id/edu_view"
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:background="@drawable/bg_rounded_corner_bottom_sheet"
  28. android:gravity="center_horizontal"
  29. android:paddingHorizontal="36dp"
  30. android:paddingTop="64dp">
  31. <com.android.launcher3.taskbar.TaskbarEduPagedView
  32. android:id="@+id/content"
  33. android:clipToPadding="false"
  34. android:layout_width="match_parent"
  35. android:layout_height="378dp"
  36. app:layout_constraintTop_toTopOf="parent"
  37. launcher:pageIndicator="@+id/content_page_indicator">
  38. <LinearLayout
  39. android:id="@+id/page_switch_apps"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:orientation="vertical"
  43. android:gravity="center_horizontal">
  44. <TextView
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. style="@style/TextAppearance.TaskbarEdu.Title"
  48. android:text="@string/taskbar_edu_switch_apps"/>
  49. <ImageView
  50. android:layout_width="322dp"
  51. android:layout_height="282dp"
  52. android:layout_marginTop="16dp"
  53. android:src="@drawable/taskbar_edu_switch_apps"/>
  54. </LinearLayout>
  55. <LinearLayout
  56. android:id="@+id/page_splitscreen"
  57. android:layout_width="match_parent"
  58. android:layout_height="wrap_content"
  59. android:orientation="vertical"
  60. android:gravity="center_horizontal">
  61. <TextView
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. style="@style/TextAppearance.TaskbarEdu.Title"
  65. android:text="@string/taskbar_edu_splitscreen"/>
  66. <ImageView
  67. android:layout_width="322dp"
  68. android:layout_height="282dp"
  69. android:layout_marginTop="16dp"
  70. android:src="@drawable/taskbar_edu_splitscreen"/>
  71. </LinearLayout>
  72. <LinearLayout
  73. android:id="@+id/page_stashing"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:orientation="vertical"
  77. android:gravity="center_horizontal">
  78. <TextView
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. style="@style/TextAppearance.TaskbarEdu.Title"
  82. android:text="@string/taskbar_edu_stashing"/>
  83. <ImageView
  84. android:layout_width="322dp"
  85. android:layout_height="282dp"
  86. android:layout_marginTop="16dp"
  87. android:src="@drawable/taskbar_edu_stashing"/>
  88. </LinearLayout>
  89. </com.android.launcher3.taskbar.TaskbarEduPagedView>
  90. <Button
  91. android:id="@+id/edu_start_button"
  92. android:layout_width="wrap_content"
  93. android:layout_height="36dp"
  94. android:layout_marginBottom="92dp"
  95. android:layout_marginTop="32dp"
  96. app:layout_constraintTop_toBottomOf="@id/content"
  97. app:layout_constraintBottom_toBottomOf="parent"
  98. app:layout_constraintStart_toStartOf="parent"
  99. android:text="@string/taskbar_edu_close"
  100. style="@style/TaskbarEdu.Button.Close"
  101. android:textColor="?android:attr/textColorPrimary"/>
  102. <com.android.launcher3.pageindicators.PageIndicatorDots
  103. android:id="@+id/content_page_indicator"
  104. android:layout_width="wrap_content"
  105. android:layout_height="wrap_content"
  106. app:layout_constraintTop_toTopOf="@id/edu_start_button"
  107. app:layout_constraintBottom_toBottomOf="@id/edu_start_button"
  108. app:layout_constraintStart_toStartOf="parent"
  109. app:layout_constraintEnd_toEndOf="parent"
  110. android:elevation="1dp" />
  111. <Button
  112. android:id="@+id/edu_end_button"
  113. android:layout_width="wrap_content"
  114. android:layout_height="0dp"
  115. app:layout_constraintTop_toTopOf="@id/edu_start_button"
  116. app:layout_constraintBottom_toBottomOf="@id/edu_start_button"
  117. app:layout_constraintEnd_toEndOf="parent"
  118. android:text="@string/taskbar_edu_next"
  119. style="@style/TaskbarEdu.Button.Next"
  120. android:textColor="?androidprv:attr/textColorOnAccent"/>
  121. </androidx.constraintlayout.widget.ConstraintLayout>
  122. </com.android.launcher3.taskbar.TaskbarEduView>