1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The Android Open Source Project
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-->
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. -->
19<com.android.launcher3.allapps.LauncherAllAppsContainerView
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:id="@+id/apps_view"
22    android:theme="?attr/allAppsTheme"
23    android:layout_width="match_parent"
24    android:layout_height="match_parent"
25    android:clipChildren="true"
26    android:clipToPadding="false"
27    android:focusable="false"
28    android:saveEnabled="false">
29
30    <include
31        layout="@layout/all_apps_rv_layout"
32        android:visibility="gone" />
33
34    <com.android.launcher3.allapps.FloatingHeaderView
35        android:id="@+id/all_apps_header"
36        android:layout_width="match_parent"
37        android:layout_height="wrap_content"
38        android:layout_below="@id/search_container_all_apps"
39        android:clipToPadding="false"
40        android:paddingTop="@dimen/all_apps_header_top_padding"
41        android:orientation="vertical" >
42
43        <include layout="@layout/floating_header_content" />
44
45        <com.android.launcher3.allapps.PersonalWorkSlidingTabStrip
46            android:id="@+id/tabs"
47            android:layout_width="match_parent"
48            android:layout_height="@dimen/all_apps_header_tab_height"
49            android:layout_marginLeft="@dimen/all_apps_tabs_side_padding"
50            android:layout_marginRight="@dimen/all_apps_tabs_side_padding"
51            android:orientation="horizontal"
52            style="@style/TextHeadline">
53
54            <Button
55                android:id="@+id/tab_personal"
56                android:layout_width="0dp"
57                android:layout_height="match_parent"
58                android:layout_weight="1"
59                android:background="?android:attr/selectableItemBackground"
60                android:text="@string/all_apps_personal_tab"
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"
70                android:text="@string/all_apps_work_tab"
71                android:textColor="@color/all_apps_tab_text"
72                android:textSize="14sp" />
73        </com.android.launcher3.allapps.PersonalWorkSlidingTabStrip>
74    </com.android.launcher3.allapps.FloatingHeaderView>
75
76    <include
77        android:id="@id/search_container_all_apps"
78        layout="@layout/search_container_all_apps"/>
79
80    <include layout="@layout/all_apps_fast_scroller" />
81</com.android.launcher3.allapps.LauncherAllAppsContainerView>