blob: 93662fc08f7ba3415dc727a98a6960986e9bd459 [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"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080021 xmlns:launcher="http://schemas.android.com/apk/res-auto"
Winson Chungb745afb2015-03-02 11:51:23 -080022 android:id="@+id/apps_view"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080025 android:orientation="vertical"
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080026 launcher:revealBackground="@drawable/round_rect_primary">
Winson Chungef7f8742015-06-04 17:18:17 -070027
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080028 <View
29 android:id="@+id/reveal_view"
Winson Chungaa2ab252015-03-16 12:39:05 -070030 android:layout_width="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080031 android:layout_height="match_parent"
32 android:layout_gravity="center"
Peter Schiller310a9882016-06-30 13:52:36 -070033 android:focusable="false"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080034 android:visibility="invisible" />
35
36
37 <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView
Peter Schiller310a9882016-06-30 13:52:36 -070038 android:id="@+id/main_content"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080039 android:layout_width="match_parent"
40 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080041 android:layout_gravity="center"
Winson Chungef7f8742015-06-04 17:18:17 -070042 android:focusable="true"
Sunny Goyal89d5c5a2017-06-23 16:12:50 -070043 android:clipToPadding="false"
44 android:clipChildren="true"
Winson Chungef7f8742015-06-04 17:18:17 -070045 android:focusableInTouchMode="true"
Peter Schiller310a9882016-06-30 13:52:36 -070046 android:saveEnabled="false"
47 android:visibility="gone">
Winson Chungef7f8742015-06-04 17:18:17 -070048
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080049 <!-- DO NOT CHANGE THE ID -->
50 <com.android.launcher3.allapps.AllAppsRecyclerView
51 android:id="@+id/apps_list_view"
Jon Mirandaaca21452016-09-26 14:01:56 -070052 android:layout_below="@+id/search_container"
Winson Chungef7f8742015-06-04 17:18:17 -070053 android:layout_width="match_parent"
54 android:layout_height="match_parent"
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080055 android:layout_gravity="center_horizontal|top"
Peter Schiller310a9882016-06-30 13:52:36 -070056 android:clipToPadding="false"
Jon Miranda4e11c272017-04-20 12:07:38 -070057 android:overScrollMode="never"
Peter Schiller310a9882016-06-30 13:52:36 -070058 android:descendantFocusability="afterDescendants"
Jon Mirandab28c4fc2017-06-20 10:58:36 -070059 android:focusable="true" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080060
Sunny Goyal60820d72017-05-09 12:40:11 -070061 <!-- Note: we are reusing/repurposing a system attribute for search layout, because of a
62 platform bug, which prevents using custom attributes in <include> tag -->
Sunny Goyal161f96b2017-05-07 11:56:00 -070063 <include
Sunny Goyal60820d72017-05-09 12:40:11 -070064 layout="?android:attr/keyboardLayout"
Sunny Goyal161f96b2017-05-07 11:56:00 -070065 android:id="@+id/search_container" />
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080066
Sunny Goyal89d5c5a2017-06-23 16:12:50 -070067 <include layout="@layout/all_apps_fast_scroller" />
68
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080069 </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView>
Hyunyoung Songe28bd7c2016-07-06 15:10:14 -070070 <View
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080071 style="@style/AllAppsNavBarProtection"
Hyunyoung Songe28bd7c2016-07-06 15:10:14 -070072 android:id="@+id/nav_bar_bg"
73 android:layout_width="match_parent"
74 android:layout_height="0dp"
75 android:layout_gravity="bottom"
Hyunyoung Songe28bd7c2016-07-06 15:10:14 -070076 android:focusable="false"
77 android:visibility="invisible" />
Winson Chung5f4e0fd2015-05-22 11:12:27 -070078</com.android.launcher3.allapps.AllAppsContainerView>