blob: 6f837aeca32635d4ea3e309aba5d233bfd98f669 [file] [log] [blame]
Winson Chungb745afb2015-03-02 11:51:23 -08001<?xml version="1.0" encoding="utf-8"?>
Peter Schiller310a9882016-06-30 13:52:36 -07002<!-- Copyright (C) 2016 The Android Open Source Project
Winson Chungb745afb2015-03-02 11:51:23 -08003
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-->
Winson Chungaa2ab252015-03-16 12:39:05 -070016<!-- 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. -->
Sunny Goyal89d5c5a2017-06-23 16:12:50 -070019<com.android.launcher3.allapps.AllAppsContainerView
20 xmlns:android="http://schemas.android.com/apk/res/android"
Winson Chungb745afb2015-03-02 11:51:23 -080021 android:id="@+id/apps_view"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent"
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070024 android:clipChildren="true"
25 android:clipToPadding="false"
26 android:focusable="true"
27 android:focusableInTouchMode="true"
28 android:saveEnabled="false" >
Winson Chungef7f8742015-06-04 17:18:17 -070029
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070030 <!-- DO NOT CHANGE THE ID -->
31 <com.android.launcher3.allapps.AllAppsRecyclerView
32 android:id="@+id/apps_list_view"
Winson Chungaa2ab252015-03-16 12:39:05 -070033 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080034 android:layout_height="match_parent"
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070035 android:layout_below="@id/search_container_all_apps"
36 android:layout_gravity="center_horizontal|top"
Sunny Goyal89d5c5a2017-06-23 16:12:50 -070037 android:clipToPadding="false"
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070038 android:descendantFocusability="afterDescendants"
39 android:focusable="true"
40 android:overScrollMode="never" />
Winson Chungef7f8742015-06-04 17:18:17 -070041
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070042 <!-- Note: we are reusing/repurposing a system attribute for search layout, because of a
43 platform bug, which prevents using custom attributes in <include> tag -->
44 <include
45 android:id="@id/search_container_all_apps"
46 layout="?android:attr/keyboardLayout" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080047
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070048 <include layout="@layout/all_apps_fast_scroller" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080049
Hyunyoung Songe28bd7c2016-07-06 15:10:14 -070050 <View
51 android:id="@+id/nav_bar_bg"
52 android:layout_width="match_parent"
53 android:layout_height="0dp"
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070054 android:layout_alignParentBottom="true"
55 android:background="?attr/allAppsNavBarScrimColor" />
Winson Chung5f4e0fd2015-05-22 11:12:27 -070056</com.android.launcher3.allapps.AllAppsContainerView>