Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Peter Schiller | 310a988 | 2016-06-30 13:52:36 -0700 | [diff] [blame] | 2 | <!-- Copyright (C) 2016 The Android Open Source Project |
Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 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 | --> |
Winson Chung | aa2ab25 | 2015-03-16 12:39:05 -0700 | [diff] [blame] | 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. --> |
Sunny Goyal | 89d5c5a | 2017-06-23 16:12:50 -0700 | [diff] [blame] | 19 | <com.android.launcher3.allapps.AllAppsContainerView |
| 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
Winson Chung | b745afb | 2015-03-02 11:51:23 -0800 | [diff] [blame] | 21 | android:id="@+id/apps_view" |
| 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent" |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 24 | android:clipChildren="true" |
| 25 | android:clipToPadding="false" |
| 26 | android:focusable="true" |
| 27 | android:focusableInTouchMode="true" |
| 28 | android:saveEnabled="false" > |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 29 | |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 30 | <include layout="@layout/all_apps_rv_layout" /> |
| 31 | |
| 32 | <include layout="@layout/all_apps_fast_scroller" /> |
| 33 | |
Mario Bertschler | 3d87ed1 | 2017-12-06 11:45:49 -0800 | [diff] [blame] | 34 | <com.android.launcher3.allapps.FloatingHeaderView |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 35 | android:id="@+id/all_apps_header" |
Winson Chung | aa2ab25 | 2015-03-16 12:39:05 -0700 | [diff] [blame] | 36 | android:layout_width="match_parent" |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 37 | android:layout_height="wrap_content" |
Mario Bertschler | 2153e1c | 2017-11-14 11:32:00 -0800 | [diff] [blame] | 38 | android:paddingTop="@dimen/all_apps_header_top_padding" |
| 39 | android:clipToPadding="false" |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 40 | android:layout_below="@id/search_container_all_apps" > |
| 41 | |
| 42 | <com.android.launcher3.allapps.PredictionRowView |
| 43 | android:id="@+id/header_content" |
| 44 | android:layout_width="match_parent" |
Mario Bertschler | 2153e1c | 2017-11-14 11:32:00 -0800 | [diff] [blame] | 45 | android:layout_height="wrap_content" /> |
| 46 | |
| 47 | <include layout="@layout/all_apps_divider" |
| 48 | android:id="@+id/divider" |
| 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="wrap_content" |
Mario Bertschler | ea0eb4b | 2017-12-06 13:03:54 -0800 | [diff] [blame^] | 51 | android:layout_marginLeft="@dimen/all_apps_tabs_side_padding" |
| 52 | android:layout_marginRight="@dimen/all_apps_tabs_side_padding" |
Mario Bertschler | 2153e1c | 2017-11-14 11:32:00 -0800 | [diff] [blame] | 53 | android:layout_alignBottom="@+id/tabs" /> |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 54 | |
Mario Bertschler | 510a64d | 2017-11-15 11:53:32 -0800 | [diff] [blame] | 55 | <com.android.launcher3.views.SlidingTabStrip |
| 56 | android:id="@+id/tabs" |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="@dimen/all_apps_header_tab_height" |
Mario Bertschler | ea0eb4b | 2017-12-06 13:03:54 -0800 | [diff] [blame^] | 59 | android:layout_marginLeft="@dimen/all_apps_tabs_side_padding" |
| 60 | android:layout_marginRight="@dimen/all_apps_tabs_side_padding" |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 61 | android:layout_below="@id/header_content" |
Mario Bertschler | 2153e1c | 2017-11-14 11:32:00 -0800 | [diff] [blame] | 62 | android:orientation="horizontal" > |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 63 | <Button |
| 64 | android:id="@+id/tab_personal" |
| 65 | android:layout_width="0dp" |
| 66 | android:layout_height="match_parent" |
| 67 | android:layout_weight="1" |
| 68 | android:text="@string/all_apps_personal_tab" |
Mario Bertschler | 510a64d | 2017-11-15 11:53:32 -0800 | [diff] [blame] | 69 | android:textColor="@color/all_apps_tab_text" |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 70 | android:background="?android:attr/selectableItemBackground"/> |
| 71 | <Button |
| 72 | android:id="@+id/tab_work" |
| 73 | android:layout_width="0dp" |
| 74 | android:layout_height="match_parent" |
| 75 | android:layout_weight="1" |
| 76 | android:text="@string/all_apps_work_tab" |
Mario Bertschler | 510a64d | 2017-11-15 11:53:32 -0800 | [diff] [blame] | 77 | android:textColor="@color/all_apps_tab_text" |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 78 | android:background="?android:attr/selectableItemBackground"/> |
Mario Bertschler | 510a64d | 2017-11-15 11:53:32 -0800 | [diff] [blame] | 79 | </com.android.launcher3.views.SlidingTabStrip> |
Mario Bertschler | 3d87ed1 | 2017-12-06 11:45:49 -0800 | [diff] [blame] | 80 | </com.android.launcher3.allapps.FloatingHeaderView> |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 81 | |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 82 | <!-- Note: we are reusing/repurposing a system attribute for search layout, because of a |
| 83 | platform bug, which prevents using custom attributes in <include> tag --> |
| 84 | <include |
| 85 | android:id="@id/search_container_all_apps" |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 86 | layout="?android:attr/keyboardLayout"/> |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 87 | |
Hyunyoung Song | e28bd7c | 2016-07-06 15:10:14 -0700 | [diff] [blame] | 88 | <View |
| 89 | android:id="@+id/nav_bar_bg" |
| 90 | android:layout_width="match_parent" |
| 91 | android:layout_height="0dp" |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 92 | android:layout_alignParentBottom="true" |
| 93 | android:background="?attr/allAppsNavBarScrimColor" /> |
Winson Chung | 5f4e0fd | 2015-05-22 11:12:27 -0700 | [diff] [blame] | 94 | </com.android.launcher3.allapps.AllAppsContainerView> |