1<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2023 The Android Open Source Project 2 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 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14--> 15<merge xmlns:android="http://schemas.android.com/apk/res/android" 16 xmlns:launcher="http://schemas.android.com/apk/res-auto"> 17 18 <FrameLayout 19 android:id="@+id/widgets_two_pane_sheet_paged_view" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:gravity="start" 23 android:paddingHorizontal="@dimen/widget_list_horizontal_margin_two_pane" 24 android:layout_gravity="start" 25 android:clipChildren="false" 26 android:clipToPadding="false" 27 android:layout_alignParentStart="true"> 28 <com.android.launcher3.widget.picker.WidgetPagedView 29 android:id="@+id/widgets_view_pager" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:clipToPadding="false" 33 android:descendantFocusability="afterDescendants" 34 launcher:pageIndicator="@+id/tabs" > 35 36 <com.android.launcher3.widget.picker.WidgetsRecyclerView 37 android:id="@+id/primary_widgets_list_view" 38 android:layout_width="match_parent" 39 android:layout_height="match_parent" 40 android:clipToPadding="false" /> 41 42 <com.android.launcher3.widget.picker.WidgetsRecyclerView 43 android:id="@+id/work_widgets_list_view" 44 android:layout_width="match_parent" 45 android:layout_height="match_parent" 46 android:clipToPadding="false" /> 47 48 </com.android.launcher3.widget.picker.WidgetPagedView> 49 50 <!-- SearchAndRecommendationsView without the tab layout as well --> 51 <com.android.launcher3.views.StickyHeaderLayout 52 android:id="@+id/search_and_recommendations_container" 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:clipToOutline="true" 56 android:orientation="vertical"> 57 58 <FrameLayout 59 android:id="@+id/search_bar_container" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:background="?attr/widgetPickerPrimarySurfaceColor" 63 android:clipToPadding="false" 64 android:elevation="0.1dp" 65 android:paddingBottom="8dp" 66 launcher:layout_sticky="true"> 67 68 <include layout="@layout/widgets_search_bar" /> 69 </FrameLayout> 70 71 <FrameLayout 72 android:layout_width="match_parent" 73 android:layout_height="match_parent" 74 android:id="@+id/suggestions_header" 75 android:layout_marginTop="8dp" 76 android:orientation="horizontal" 77 android:background="?attr/widgetPickerPrimarySurfaceColor" 78 launcher:layout_sticky="true"> 79 </FrameLayout> 80 81 <com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip 82 android:id="@+id/tabs" 83 android:layout_width="match_parent" 84 android:layout_height="64dp" 85 android:gravity="center_horizontal" 86 android:orientation="horizontal" 87 android:paddingVertical="8dp" 88 android:background="?attr/widgetPickerPrimarySurfaceColor" 89 style="@style/TextHeadline" 90 launcher:layout_sticky="true"> 91 92 <Button 93 android:id="@+id/tab_personal" 94 android:layout_width="0dp" 95 android:layout_height="match_parent" 96 android:layout_marginEnd="@dimen/widget_tabs_button_horizontal_padding" 97 android:layout_marginVertical="@dimen/widget_apps_tabs_vertical_padding" 98 android:layout_weight="1" 99 android:background="@drawable/widget_picker_tabs_background" 100 android:text="@string/widgets_full_sheet_personal_tab" 101 android:textColor="@color/widget_picker_tab_text" 102 android:textSize="14sp" 103 style="?android:attr/borderlessButtonStyle" /> 104 105 <Button 106 android:id="@+id/tab_work" 107 android:layout_width="0dp" 108 android:layout_height="match_parent" 109 android:layout_marginEnd="@dimen/widget_tabs_button_horizontal_padding" 110 android:layout_marginVertical="@dimen/widget_apps_tabs_vertical_padding" 111 android:layout_weight="1" 112 android:background="@drawable/widget_picker_tabs_background" 113 android:text="@string/widgets_full_sheet_work_tab" 114 android:textColor="@color/widget_picker_tab_text" 115 android:textSize="14sp" 116 style="?android:attr/borderlessButtonStyle" /> 117 118 </com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip> 119 </com.android.launcher3.views.StickyHeaderLayout> 120 </FrameLayout> 121</merge> 122