1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<merge xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:launcher="http://schemas.android.com/apk/res-auto" > 18 <com.android.launcher3.widget.picker.WidgetsRecyclerView 19 android:id="@+id/primary_widgets_list_view" 20 android:layout_below="@id/collapse_handle" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:paddingHorizontal="@dimen/widget_list_horizontal_margin" 24 android:clipToPadding="false" /> 25 26 <!-- SearchAndRecommendationsView without the tab layout as well --> 27 <com.android.launcher3.views.StickyHeaderLayout 28 android:id="@+id/search_and_recommendations_container" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:layout_below="@id/collapse_handle" 32 android:paddingBottom="8dp" 33 android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin" 34 android:clipToOutline="true" 35 android:orientation="vertical"> 36 37 <TextView 38 android:id="@+id/title" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:gravity="center_horizontal" 42 android:textSize="24sp" 43 android:layout_marginTop="24dp" 44 android:textColor="?attr/widgetPickerTitleColor" 45 android:text="@string/widget_button_text"/> 46 47 <FrameLayout 48 android:id="@+id/search_bar_container" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:elevation="0.1dp" 52 android:background="?attr/widgetPickerPrimarySurfaceColor" 53 android:paddingBottom="8dp" 54 android:clipToPadding="false" 55 launcher:layout_sticky="true" > 56 <include layout="@layout/widgets_search_bar" /> 57 </FrameLayout> 58 59 <!-- Shown when there are recommendations to display --> 60 <LinearLayout 61 android:id="@+id/widget_recommendations_container" 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 android:layout_marginTop="8dp" 65 android:layout_marginBottom="8dp" 66 android:background="@drawable/widgets_surface_background" 67 android:orientation="vertical" 68 android:visibility="gone"> 69 <include layout="@layout/widget_recommendations" /> 70 </LinearLayout> 71 </com.android.launcher3.views.StickyHeaderLayout> 72 73</merge>