widgets_personal_work_tabs.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ~ Copyright (C) 2021 The Android Open Source Project
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip
  18. xmlns:android="http://schemas.android.com/apk/res/android"
  19. android:id="@+id/tabs"
  20. android:layout_width="match_parent"
  21. android:layout_height="@dimen/all_apps_header_pill_height"
  22. android:gravity="center_horizontal"
  23. android:orientation="horizontal"
  24. android:layout_marginHorizontal="@dimen/widget_tabs_horizontal_margin"
  25. style="@style/TextHeadline">
  26. <Button
  27. android:id="@+id/tab_personal"
  28. android:layout_width="0dp"
  29. android:layout_height="match_parent"
  30. android:layout_marginEnd="@dimen/widget_tabs_button_horizontal_padding"
  31. android:layout_marginVertical="@dimen/widget_apps_tabs_vertical_padding"
  32. android:layout_weight="1"
  33. android:background="@drawable/all_apps_tabs_background"
  34. android:text="@string/widgets_full_sheet_personal_tab"
  35. android:textColor="@color/all_apps_tab_text"
  36. android:textSize="14sp"
  37. style="?android:attr/borderlessButtonStyle" />
  38. <Button
  39. android:id="@+id/tab_work"
  40. android:layout_width="0dp"
  41. android:layout_height="match_parent"
  42. android:layout_marginEnd="@dimen/widget_tabs_button_horizontal_padding"
  43. android:layout_marginVertical="@dimen/widget_apps_tabs_vertical_padding"
  44. android:layout_weight="1"
  45. android:background="@drawable/all_apps_tabs_background"
  46. android:text="@string/widgets_full_sheet_work_tab"
  47. android:textColor="@color/all_apps_tab_text"
  48. android:textSize="14sp"
  49. style="?android:attr/borderlessButtonStyle" />
  50. </com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip>