blob: 9427ae0b7cb575a9d90c8adc5e7dc4b4af9e6f01 [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"
Vadim Tryshevf1507a62018-05-21 11:59:48 -070026 android:focusable="false"
Hyunyoung Songfbd77f62019-04-13 02:40:31 -070027 android:saveEnabled="false">
Winson Chungef7f8742015-06-04 17:18:17 -070028
Sunny Goyal876e4622018-11-02 13:50:40 -070029 <include
30 layout="@layout/all_apps_rv_layout"
31 android:visibility="gone" />
Mario Bertschlerac9408a2017-10-18 10:31:36 -070032
Sunny Goyaldcf917b2018-11-01 16:37:03 -070033 <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 Songfbd77f62019-04-13 02:40:31 -070050 android:orientation="horizontal"
51 style="@style/TextHeadline">
Sunny Goyaldcf917b2018-11-01 16:37:03 -070052
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 Goyaldcf917b2018-11-01 16:37:03 -070059 android:text="@string/all_apps_personal_tab"
60 android:textAllCaps="true"
61 android:textColor="@color/all_apps_tab_text"
62 android:textSize="14sp" />
63
64 <Button
65 android:id="@+id/tab_work"
66 android:layout_width="0dp"
67 android:layout_height="match_parent"
68 android:layout_weight="1"
69 android:background="?android:attr/selectableItemBackground"
Sunny Goyaldcf917b2018-11-01 16:37:03 -070070 android:text="@string/all_apps_work_tab"
71 android:textAllCaps="true"
72 android:textColor="@color/all_apps_tab_text"
73 android:textSize="14sp" />
74 </com.android.launcher3.allapps.PersonalWorkSlidingTabStrip>
75 </com.android.launcher3.allapps.FloatingHeaderView>
Winson Chungef7f8742015-06-04 17:18:17 -070076
Sunny Goyalf1fbc3f2017-10-10 15:21:15 -070077 <include
78 android:id="@id/search_container_all_apps"
Sunny Goyaldbd6bb32018-03-01 14:55:22 -080079 layout="@layout/search_container_all_apps"/>
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080080
Sunny Goyal3661bfa2018-03-01 16:29:15 -080081 <include layout="@layout/all_apps_fast_scroller" />
Winson Chung5f4e0fd2015-05-22 11:12:27 -070082</com.android.launcher3.allapps.AllAppsContainerView>