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 | 9c2b960 | 2020-01-07 13:07:55 -0800 | [diff] [blame] | 19 | <com.android.launcher3.allapps.LauncherAllAppsContainerView |
Sunny Goyal | 89d5c5a | 2017-06-23 16:12:50 -0700 | [diff] [blame] | 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" |
Vadim Tryshev | f1507a6 | 2018-05-21 11:59:48 -0700 | [diff] [blame] | 26 | android:focusable="false" |
Hyunyoung Song | fbd77f6 | 2019-04-13 02:40:31 -0700 | [diff] [blame] | 27 | android:saveEnabled="false"> |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 28 | |
Sunny Goyal | 876e462 | 2018-11-02 13:50:40 -0700 | [diff] [blame] | 29 | <include |
| 30 | layout="@layout/all_apps_rv_layout" |
| 31 | android:visibility="gone" /> |
Mario Bertschler | ac9408a | 2017-10-18 10:31:36 -0700 | [diff] [blame] | 32 | |
Sunny Goyal | dcf917b | 2018-11-01 16:37:03 -0700 | [diff] [blame] | 33 | <com.android.launcher3.allapps.FloatingHeaderView |
| 34 | android:id="@+id/all_apps_header" |
| 35 | android:layout_width="match_parent" |
| 36 | android:layout_height="wrap_content" |
| 37 | android:layout_below="@id/search_container_all_apps" |
| 38 | android:clipToPadding="false" |
| 39 | android:paddingTop="@dimen/all_apps_header_top_padding" |
| 40 | android:orientation="vertical" > |
| 41 | |
| 42 | <include layout="@layout/floating_header_content" /> |
| 43 | |
| 44 | <com.android.launcher3.allapps.PersonalWorkSlidingTabStrip |
| 45 | android:id="@+id/tabs" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="@dimen/all_apps_header_tab_height" |
| 48 | android:layout_marginLeft="@dimen/all_apps_tabs_side_padding" |
| 49 | android:layout_marginRight="@dimen/all_apps_tabs_side_padding" |
Hyunyoung Song | fbd77f6 | 2019-04-13 02:40:31 -0700 | [diff] [blame] | 50 | android:orientation="horizontal" |
| 51 | style="@style/TextHeadline"> |
Sunny Goyal | dcf917b | 2018-11-01 16:37:03 -0700 | [diff] [blame] | 52 | |
| 53 | <Button |
| 54 | android:id="@+id/tab_personal" |
| 55 | android:layout_width="0dp" |
| 56 | android:layout_height="match_parent" |
| 57 | android:layout_weight="1" |
| 58 | android:background="?android:attr/selectableItemBackground" |
Sunny Goyal | dcf917b | 2018-11-01 16:37:03 -0700 | [diff] [blame] | 59 | android:text="@string/all_apps_personal_tab" |
Sunny Goyal | dcf917b | 2018-11-01 16:37:03 -0700 | [diff] [blame] | 60 | android:textColor="@color/all_apps_tab_text" |
| 61 | android:textSize="14sp" /> |
| 62 | |
| 63 | <Button |
| 64 | android:id="@+id/tab_work" |
| 65 | android:layout_width="0dp" |
| 66 | android:layout_height="match_parent" |
| 67 | android:layout_weight="1" |
| 68 | android:background="?android:attr/selectableItemBackground" |
Sunny Goyal | dcf917b | 2018-11-01 16:37:03 -0700 | [diff] [blame] | 69 | android:text="@string/all_apps_work_tab" |
Sunny Goyal | dcf917b | 2018-11-01 16:37:03 -0700 | [diff] [blame] | 70 | android:textColor="@color/all_apps_tab_text" |
| 71 | android:textSize="14sp" /> |
| 72 | </com.android.launcher3.allapps.PersonalWorkSlidingTabStrip> |
| 73 | </com.android.launcher3.allapps.FloatingHeaderView> |
Winson Chung | ef7f874 | 2015-06-04 17:18:17 -0700 | [diff] [blame] | 74 | |
Sunny Goyal | f1fbc3f | 2017-10-10 15:21:15 -0700 | [diff] [blame] | 75 | <include |
| 76 | android:id="@id/search_container_all_apps" |
Sunny Goyal | dbd6bb3 | 2018-03-01 14:55:22 -0800 | [diff] [blame] | 77 | layout="@layout/search_container_all_apps"/> |
Sunny Goyal | 0ac7ede | 2016-01-29 13:14:14 -0800 | [diff] [blame] | 78 | |
Sunny Goyal | 3661bfa | 2018-03-01 16:29:15 -0800 | [diff] [blame] | 79 | <include layout="@layout/all_apps_fast_scroller" /> |
Sunny Goyal | 9c2b960 | 2020-01-07 13:07:55 -0800 | [diff] [blame] | 80 | </com.android.launcher3.allapps.LauncherAllAppsContainerView> |