blob: 3f6be2c6a353316fe8e815376e8cddf1e312fbfc [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
Mario Bertschlerac9408a2017-10-18 10:31:36 -070030 <include layout="@layout/all_apps_rv_layout" />
31
32 <include layout="@layout/all_apps_fast_scroller" />
33
Mario Bertschler3d87ed12017-12-06 11:45:49 -080034 <com.android.launcher3.allapps.FloatingHeaderView
Mario Bertschlerac9408a2017-10-18 10:31:36 -070035 android:id="@+id/all_apps_header"
Winson Chungaa2ab252015-03-16 12:39:05 -070036 android:layout_width="match_parent"
Mario Bertschlerac9408a2017-10-18 10:31:36 -070037 android:layout_height="wrap_content"
Mario Bertschler2153e1c2017-11-14 11:32:00 -080038 android:paddingTop="@dimen/all_apps_header_top_padding"
39 android:clipToPadding="false"
Mario Bertschlerac9408a2017-10-18 10:31:36 -070040 android:layout_below="@id/search_container_all_apps" >
41
Mario Bertschler846ba912017-12-08 14:08:35 -080042 <include layout="@layout/predictions_view" android:id="@+id/header_content" />
Mario Bertschler2153e1c2017-11-14 11:32:00 -080043
44 <include layout="@layout/all_apps_divider"
45 android:id="@+id/divider"
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
Mario Bertschlerea0eb4b2017-12-06 13:03:54 -080048 android:layout_marginLeft="@dimen/all_apps_tabs_side_padding"
49 android:layout_marginRight="@dimen/all_apps_tabs_side_padding"
Mario Bertschler2153e1c2017-11-14 11:32:00 -080050 android:layout_alignBottom="@+id/tabs" />
Mario Bertschlerac9408a2017-10-18 10:31:36 -070051
Tony Mak195f0052017-12-07 15:32:36 +000052 <com.android.launcher3.allapps.PersonalWorkSlidingTabStrip
Mario Bertschler510a64d2017-11-15 11:53:32 -080053 android:id="@+id/tabs"
Mario Bertschlerac9408a2017-10-18 10:31:36 -070054 android:layout_width="match_parent"
55 android:layout_height="@dimen/all_apps_header_tab_height"
Mario Bertschlerea0eb4b2017-12-06 13:03:54 -080056 android:layout_marginLeft="@dimen/all_apps_tabs_side_padding"
57 android:layout_marginRight="@dimen/all_apps_tabs_side_padding"
Mario Bertschlerac9408a2017-10-18 10:31:36 -070058 android:layout_below="@id/header_content"
Tony Mak195f0052017-12-07 15:32:36 +000059 android:orientation="horizontal">
Mario Bertschlerac9408a2017-10-18 10:31:36 -070060 <Button
61 android:id="@+id/tab_personal"
62 android:layout_width="0dp"
63 android:layout_height="match_parent"
64 android:layout_weight="1"
Tony Mak195f0052017-12-07 15:32:36 +000065 android:background="?android:attr/selectableItemBackground"
66 android:fontFamily="sans-serif-medium"
Mario Bertschlerac9408a2017-10-18 10:31:36 -070067 android:text="@string/all_apps_personal_tab"
Tony Mak195f0052017-12-07 15:32:36 +000068 android:textAllCaps="true"
Mario Bertschler510a64d2017-11-15 11:53:32 -080069 android:textColor="@color/all_apps_tab_text"
Tony Mak195f0052017-12-07 15:32:36 +000070 android:textSize="14sp"/>
Mario Bertschlerac9408a2017-10-18 10:31:36 -070071 <Button
72 android:id="@+id/tab_work"
73 android:layout_width="0dp"
74 android:layout_height="match_parent"
75 android:layout_weight="1"
Tony Mak195f0052017-12-07 15:32:36 +000076 android:background="?android:attr/selectableItemBackground"
77 android:fontFamily="sans-serif-medium"
Mario Bertschlerac9408a2017-10-18 10:31:36 -070078 android:text="@string/all_apps_work_tab"
Tony Mak195f0052017-12-07 15:32:36 +000079 android:textAllCaps="true"
80 android:textColor="@color/all_apps_work_tab_text"
81 android:textSize="14sp"/>
82 </com.android.launcher3.allapps.PersonalWorkSlidingTabStrip>
Mario Bertschler3d87ed12017-12-06 11:45:49 -080083 </com.android.launcher3.allapps.FloatingHeaderView>
Winson Chungef7f8742015-06-04 17:18:17 -070084
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070085 <!-- Note: we are reusing/repurposing a system attribute for search layout, because of a
86 platform bug, which prevents using custom attributes in <include> tag -->
87 <include
88 android:id="@id/search_container_all_apps"
Mario Bertschlerac9408a2017-10-18 10:31:36 -070089 layout="?android:attr/keyboardLayout"/>
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080090
Hyunyoung Songe28bd7c2016-07-06 15:10:14 -070091 <View
92 android:id="@+id/nav_bar_bg"
93 android:layout_width="match_parent"
94 android:layout_height="0dp"
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070095 android:layout_alignParentBottom="true"
96 android:background="?attr/allAppsNavBarScrimColor" />
Winson Chung5f4e0fd2015-05-22 11:12:27 -070097</com.android.launcher3.allapps.AllAppsContainerView>