1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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<!-- The top and bottom paddings are defined in this container, but since we want
17     the list view to span the full width (for touch interception purposes), we
18     will bake the left/right padding into that view's background itself. -->
19<com.android.launcher3.widget.WidgetsContainerView
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    xmlns:launcher="http://schemas.android.com/apk/res-auto"
22    android:id="@+id/widgets_view"
23    android:layout_width="match_parent"
24    android:layout_height="match_parent"
25    android:descendantFocusability="afterDescendants"
26    launcher:revealBackground="@drawable/quantum_panel_shape_dark">
27
28    <View
29        android:id="@+id/reveal_view"
30        android:layout_width="match_parent"
31        android:layout_height="match_parent"
32        android:layout_gravity="center"
33        android:focusable="false"
34        android:elevation="2dp"
35        android:visibility="invisible" />
36
37    <FrameLayout
38        android:id="@+id/main_content"
39        android:layout_gravity="center"
40        android:elevation="15dp"
41        android:visibility="gone"
42        android:layout_width="match_parent"
43        android:layout_height="match_parent">
44
45        <com.android.launcher3.widget.WidgetsRecyclerView
46            android:id="@+id/widgets_list_view"
47            android:theme="@style/Theme.Dark.CustomOverscroll"
48            android:layout_width="match_parent"
49            android:layout_height="match_parent" />
50    </FrameLayout>
51
52
53</com.android.launcher3.widget.WidgetsContainerView>