• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <LinearLayout
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        android:orientation="vertical">
27        <!-- SearchAndRecommendationsView without the tab layout as well -->
28        <LinearLayout
29            android:id="@+id/search_and_recommendations_container"
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content"
32            android:clipToOutline="true"
33            android:background="?attr/widgetPickerPrimarySurfaceColor"
34            android:orientation="vertical">
35
36            <LinearLayout
37                android:id="@+id/search_bar_container"
38                android:layout_width="match_parent"
39                android:layout_height="wrap_content"
40                android:gravity="center_vertical"
41                android:orientation="horizontal"
42                android:background="?attr/widgetPickerPrimarySurfaceColor"
43                android:paddingHorizontal="@dimen/widget_list_horizontal_margin_two_pane"
44                launcher:layout_sticky="true">
45                <FrameLayout
46                    android:layout_width="0dp"
47                    android:layout_height="wrap_content"
48                    android:layout_weight="1"
49                    android:clipToPadding="false"
50                    android:elevation="0.1dp"
51                    android:paddingBottom="16dp">
52
53                    <include layout="@layout/widgets_search_bar" />
54                </FrameLayout>
55
56                <ImageButton
57                    android:id="@+id/widget_picker_widget_options_menu"
58                    android:layout_width="48dp"
59                    android:layout_height="48dp"
60                    android:layout_marginStart="8dp"
61                    android:layout_marginBottom="16dp"
62                    android:layout_gravity="bottom"
63                    android:background="@drawable/full_rounded_transparent_ripple"
64                    android:contentDescription="@string/widget_picker_widget_options_button_description"
65                    android:padding="12dp"
66                    android:src="@drawable/ic_more_vert_dots"
67                    android:visibility="gone"
68                    android:tint="?attr/widgetPickerWidgetOptionsMenuColor" />
69            </LinearLayout>
70
71            <FrameLayout
72                android:layout_width="match_parent"
73                android:layout_height="match_parent"
74                android:id="@+id/suggestions_header"
75                android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin_two_pane"
76                android:paddingBottom="16dp"
77                android:background="?attr/widgetPickerPrimarySurfaceColor"
78                launcher:layout_sticky="true">
79            </FrameLayout>
80        </LinearLayout>
81
82        <com.android.launcher3.widget.picker.WidgetsRecyclerView
83            android:id="@+id/primary_widgets_list_view"
84            android:layout_width="match_parent"
85            android:layout_height="match_parent"
86            android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin_two_pane"
87            android:clipToPadding="false" />
88
89        <com.android.launcher3.widget.picker.WidgetsRecyclerView
90            android:id="@+id/search_widgets_list_view"
91            android:layout_width="match_parent"
92            android:layout_height="match_parent"
93            android:clipToPadding="false"
94            android:paddingHorizontal="@dimen/widget_list_horizontal_margin_two_pane"
95            android:visibility="gone" />
96    </LinearLayout>
97</merge>