widgets_edu.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.views.WidgetsEduView
  14. xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_gravity="bottom"
  18. android:gravity="bottom"
  19. android:orientation="vertical">
  20. <LinearLayout
  21. android:id="@+id/edu_view"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:background="@drawable/bg_rounded_corner_bottom_sheet"
  25. android:gravity="center_horizontal"
  26. android:orientation="vertical"
  27. android:paddingHorizontal="@dimen/bottom_sheet_edu_padding"
  28. android:paddingTop="@dimen/bottom_sheet_edu_padding">
  29. <TextView
  30. style="@style/TextHeadline"
  31. android:id="@+id/edu_header"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:gravity="center_horizontal"
  35. android:text="@string/widget_education_header"
  36. android:textColor="?android:attr/textColorPrimary"
  37. android:textSize="24sp"
  38. android:layout_marginBottom="16dp"/>
  39. <TextView
  40. android:id="@+id/edu_content"
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:gravity="center_horizontal"
  44. android:text="@string/widget_education_content"
  45. android:textSize="14sp"
  46. android:textColor="?android:attr/textColorSecondary"
  47. android:layout_marginBottom="24dp"/>
  48. <Button
  49. android:id="@+id/edu_close_button"
  50. style="@style/Button.Rounded.Colored"
  51. android:layout_width="match_parent"
  52. android:layout_height="56dp"
  53. android:text="@string/widget_education_close_button"
  54. android:textSize="16sp"
  55. android:textColor="@color/button_text"
  56. android:layout_marginBottom="8dp"/>
  57. </LinearLayout>
  58. </com.android.launcher3.views.WidgetsEduView>