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 <com.android.launcher3.widget.picker.WidgetsRecyclerView 18 android:id="@+id/primary_widgets_list_view" 19 android:layout_below="@id/collapse_handle" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:paddingHorizontal="@dimen/widget_list_horizontal_margin" 23 android:clipToPadding="false" /> 24 25 <!-- SearchAndRecommendationsView without the tab layout as well --> 26 <com.android.launcher3.widget.picker.SearchAndRecommendationsView 27 android:id="@+id/search_and_recommendations_container" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin" 31 android:layout_below="@id/collapse_handle" 32 android:paddingBottom="16dp" 33 android:orientation="vertical"> 34 35 <TextView 36 android:id="@+id/title" 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content" 39 android:gravity="center_horizontal" 40 android:textSize="24sp" 41 android:layout_marginTop="24dp" 42 android:textColor="?android:attr/textColorSecondary" 43 android:text="@string/widget_button_text"/> 44 45 <FrameLayout 46 android:id="@+id/search_bar_container" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:elevation="0.1dp" 50 android:background="?android:attr/colorBackground" 51 android:paddingBottom="8dp" 52 android:clipToPadding="false"> 53 <include layout="@layout/widgets_search_bar" /> 54 </FrameLayout> 55 56 <com.android.launcher3.widget.picker.WidgetsRecommendationTableLayout 57 android:id="@+id/recommended_widget_table" 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:layout_marginTop="8dp" 61 android:background="@drawable/widgets_recommendation_background" 62 android:paddingVertical="@dimen/recommended_widgets_table_vertical_padding" 63 android:visibility="gone" /> 64 </com.android.launcher3.widget.picker.SearchAndRecommendationsView> 65 66</merge>