1<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2021 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_recyclerview"
20        android:layout_width="match_parent"
21        android:layout_height="match_parent"
22        android:gravity="start"
23        android:layout_gravity="start"
24        android:clipChildren="false"
25        android:layout_alignParentStart="true">
26
27        <com.android.launcher3.widget.picker.WidgetsRecyclerView
28            android:id="@+id/primary_widgets_list_view"
29            android:layout_width="match_parent"
30            android:layout_height="match_parent"
31            android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin_two_pane"
32            android:clipToPadding="false" />
33
34        <!-- SearchAndRecommendationsView without the tab layout as well -->
35        <com.android.launcher3.views.StickyHeaderLayout
36            android:id="@+id/search_and_recommendations_container"
37            android:layout_width="match_parent"
38            android:layout_height="wrap_content"
39            android:clipToOutline="true"
40            android:orientation="vertical">
41
42            <FrameLayout
43                android:id="@+id/search_bar_container"
44                android:layout_width="match_parent"
45                android:layout_height="wrap_content"
46                android:background="?attr/widgetPickerPrimarySurfaceColor"
47                android:clipToPadding="false"
48                android:elevation="0.1dp"
49                android:paddingBottom="16dp"
50                android:paddingHorizontal="@dimen/widget_list_horizontal_margin_two_pane"
51                launcher:layout_sticky="true">
52
53                <include layout="@layout/widgets_search_bar" />
54            </FrameLayout>
55
56            <FrameLayout
57                android:layout_width="match_parent"
58                android:layout_height="match_parent"
59                android:id="@+id/suggestions_header"
60                android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin_two_pane"
61                android:paddingBottom="16dp"
62                android:background="?attr/widgetPickerPrimarySurfaceColor"
63                launcher:layout_sticky="true">
64            </FrameLayout>
65        </com.android.launcher3.views.StickyHeaderLayout>
66    </FrameLayout>
67</merge>