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:layout_alignParentStart="true"> 26 <com.android.launcher3.widget.picker.WidgetPagedView 27 android:id="@+id/widgets_view_pager" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:clipToPadding="false" 31 android:descendantFocusability="afterDescendants" 32 launcher:pageIndicator="@+id/tabs" > 33 34 <com.android.launcher3.widget.picker.WidgetsRecyclerView 35 android:id="@+id/primary_widgets_list_view" 36 android:layout_width="match_parent" 37 android:layout_height="match_parent" 38 android:clipToPadding="false" /> 39 40 <com.android.launcher3.widget.picker.WidgetsRecyclerView 41 android:id="@+id/work_widgets_list_view" 42 android:layout_width="match_parent" 43 android:layout_height="match_parent" 44 android:clipToPadding="false" /> 45 46 </com.android.launcher3.widget.picker.WidgetPagedView> 47 48 <!-- SearchAndRecommendationsView without the tab layout as well --> 49 <com.android.launcher3.views.StickyHeaderLayout 50 android:id="@+id/search_and_recommendations_container" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:clipToOutline="true" 54 android:orientation="vertical"> 55 56 <FrameLayout 57 android:id="@+id/search_bar_container" 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:background="?attr/widgetPickerPrimarySurfaceColor" 61 android:clipToPadding="false" 62 android:elevation="0.1dp" 63 android:paddingBottom="8dp" 64 launcher:layout_sticky="true"> 65 66 <include layout="@layout/widgets_search_bar" /> 67 </FrameLayout> 68 69 <LinearLayout 70 android:layout_width="match_parent" 71 android:layout_height="match_parent" 72 android:id="@+id/suggestions_header" 73 android:layout_marginTop="8dp" 74 android:orientation="horizontal" 75 android:background="?attr/widgetPickerPrimarySurfaceColor" 76 launcher:layout_sticky="true"> 77 </LinearLayout> 78 79 <com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip 80 android:id="@+id/tabs" 81 android:layout_width="match_parent" 82 android:layout_height="64dp" 83 android:gravity="center_horizontal" 84 android:orientation="horizontal" 85 android:paddingVertical="8dp" 86 android:background="?attr/widgetPickerPrimarySurfaceColor" 87 style="@style/TextHeadline" 88 launcher:layout_sticky="true"> 89 90 <Button 91 android:id="@+id/tab_personal" 92 android:layout_width="0dp" 93 android:layout_height="match_parent" 94 android:layout_marginEnd="@dimen/widget_tabs_button_horizontal_padding" 95 android:layout_marginVertical="@dimen/widget_apps_tabs_vertical_padding" 96 android:layout_weight="1" 97 android:background="@drawable/widget_picker_tabs_background" 98 android:text="@string/widgets_full_sheet_personal_tab" 99 android:textColor="@color/widget_picker_tab_text" 100 android:textSize="14sp" 101 style="?android:attr/borderlessButtonStyle" /> 102 103 <Button 104 android:id="@+id/tab_work" 105 android:layout_width="0dp" 106 android:layout_height="match_parent" 107 android:layout_marginEnd="@dimen/widget_tabs_button_horizontal_padding" 108 android:layout_marginVertical="@dimen/widget_apps_tabs_vertical_padding" 109 android:layout_weight="1" 110 android:background="@drawable/widget_picker_tabs_background" 111 android:text="@string/widgets_full_sheet_work_tab" 112 android:textColor="@color/widget_picker_tab_text" 113 android:textSize="14sp" 114 style="?android:attr/borderlessButtonStyle" /> 115 116 </com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip> 117 </com.android.launcher3.views.StickyHeaderLayout> 118 </FrameLayout> 119</merge> 120