predicted_hotseat_edu.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="utf-8"?>
  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.launcher3.hybridhotseat.HotseatEduDialog xmlns:android="http://schemas.android.com/apk/res/android"
  14. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  15. android:layout_width="match_parent"
  16. android:layout_gravity="bottom"
  17. android:layout_height="wrap_content"
  18. android:gravity="bottom"
  19. android:orientation="vertical">
  20. <View
  21. android:layout_width="match_parent"
  22. android:layout_height="32dp"
  23. android:backgroundTint="?attr/eduHalfSheetBGColor"
  24. android:background="@drawable/bottom_sheet_top_border" />
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:background="?attr/eduHalfSheetBGColor"
  29. android:orientation="vertical">
  30. <TextView
  31. style="@style/TextHeadline"
  32. android:id="@+id/hotseat_edu_heading"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_marginTop="18dp"
  36. android:paddingLeft="@dimen/bottom_sheet_edu_padding"
  37. android:paddingRight="@dimen/bottom_sheet_edu_padding"
  38. android:text="@string/hotseat_edu_title_migrate"
  39. android:fontFamily="google-sans"
  40. android:textAlignment="center"
  41. android:textColor="@android:color/white"
  42. android:textSize="20sp" />
  43. <TextView
  44. android:layout_width="match_parent"
  45. android:id="@+id/hotseat_edu_content"
  46. android:layout_height="wrap_content"
  47. android:layout_marginTop="18dp"
  48. android:layout_marginBottom="18dp"
  49. android:fontFamily="roboto-medium"
  50. android:paddingLeft="@dimen/bottom_sheet_edu_padding"
  51. android:paddingRight="@dimen/bottom_sheet_edu_padding"
  52. android:text="@string/hotseat_edu_message_migrate"
  53. android:textAlignment="center"
  54. android:textColor="@android:color/white"
  55. android:textSize="16sp" />
  56. <LinearLayout
  57. android:layout_width="match_parent"
  58. android:layout_height="wrap_content"
  59. android:id="@+id/hotseat_wrapper"
  60. android:orientation="vertical">
  61. <com.android.launcher3.CellLayout
  62. android:id="@+id/sample_prediction"
  63. android:layout_width="match_parent"
  64. android:layout_height="0dp"
  65. launcher:containerType="hotseat" />
  66. <LinearLayout
  67. android:id="@+id/button_container"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:paddingLeft="@dimen/bottom_sheet_edu_padding"
  71. android:paddingTop="8dp"
  72. android:paddingRight="@dimen/bottom_sheet_edu_padding">
  73. <FrameLayout
  74. android:layout_width="0dp"
  75. android:layout_height="wrap_content"
  76. android:layout_gravity="center_vertical"
  77. android:layout_weight=".4">
  78. <Button
  79. android:id="@+id/no_thanks"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:background="?android:attr/selectableItemBackground"
  83. android:text="@string/hotseat_edu_dismiss"
  84. android:layout_gravity="start|center_vertical"
  85. android:textColor="@android:color/white"/>
  86. </FrameLayout>
  87. <FrameLayout
  88. android:layout_width="0dp"
  89. android:layout_height="wrap_content"
  90. android:layout_gravity="center_vertical"
  91. android:layout_weight=".6">
  92. <Button
  93. android:id="@+id/turn_predictions_on"
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:background="?android:attr/selectableItemBackground"
  97. android:layout_gravity="end|center_vertical"
  98. android:text="@string/hotseat_edu_accept"
  99. android:textColor="@android:color/white"/>
  100. </FrameLayout>
  101. </LinearLayout>
  102. </LinearLayout>
  103. </LinearLayout>
  104. </com.android.launcher3.hybridhotseat.HotseatEduDialog>