1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2017 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<com.android.launcher3.widget.picker.WidgetsFullSheet 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:orientation="vertical" 22 android:theme="?attr/widgetsTheme" > 23 24 <com.android.launcher3.views.TopRoundedCornerView 25 android:id="@+id/container" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:background="?android:attr/colorBackground"> 29 30 <TextView 31 android:id="@+id/no_widgets_text" 32 android:layout_width="match_parent" 33 android:layout_height="match_parent" 34 android:gravity="center" 35 android:visibility="gone" 36 android:fontFamily="sans-serif-medium" 37 android:textSize="20sp" 38 tools:text="No widgets available" /> 39 40 <!-- Fast scroller popup --> 41 <TextView 42 android:id="@+id/fast_scroller_popup" 43 style="@style/FastScrollerPopup" 44 android:layout_alignParentEnd="true" 45 android:layout_alignParentTop="true" 46 android:layout_marginEnd="@dimen/fastscroll_popup_margin" /> 47 48 <com.android.launcher3.views.RecyclerViewFastScroller 49 android:id="@+id/fast_scroller" 50 android:layout_width="@dimen/fastscroll_width" 51 android:layout_height="match_parent" 52 android:layout_alignParentEnd="true" 53 android:layout_alignParentTop="true" 54 android:layout_marginEnd="@dimen/fastscroll_end_margin" /> 55 56 <com.android.launcher3.widget.picker.WidgetsRecyclerView 57 android:id="@+id/search_widgets_list_view" 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:visibility="gone" 61 android:clipToPadding="false" /> 62 63 </com.android.launcher3.views.TopRoundedCornerView> 64</com.android.launcher3.widget.picker.WidgetsFullSheet>