blob: 9844a370ca963b9e4a6d735abd7db2c51d0d471c [file] [log] [blame]
The Android Open Source Project31dd5032009-03-03 19:32:27 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 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
Winson Chung32174c82011-07-19 15:47:55 -07007
The Android Open Source Project31dd5032009-03-03 19:32:27 -08008 http://www.apache.org/licenses/LICENSE-2.0
Winson Chung32174c82011-07-19 15:47:55 -07009
The Android Open Source Project31dd5032009-03-03 19:32:27 -080010 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
Craig Mautner360310b2012-10-26 15:13:08 -070017<!-- Full screen view projects under the status bar and contains the background -->
18<FrameLayout
The Android Open Source Project31dd5032009-03-03 19:32:27 -080019 xmlns:android="http://schemas.android.com/apk/res/android"
Daniel Sandler325dc232013-06-05 22:57:57 -040020 xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080021
Craig Mautner360310b2012-10-26 15:13:08 -070022 android:id="@+id/launcher"
Romain Guy8f19cdd2010-01-08 15:07:00 -080023 android:layout_width="match_parent"
Craig Mautner360310b2012-10-26 15:13:08 -070024 android:layout_height="match_parent"
25 android:background="@drawable/workspace_bg">
Joe Onorato59791172009-07-31 16:21:40 -070026
Daniel Sandler325dc232013-06-05 22:57:57 -040027 <com.android.launcher3.DragLayer
Craig Mautner360310b2012-10-26 15:13:08 -070028 android:id="@+id/drag_layer"
Romain Guy8f19cdd2010-01-08 15:07:00 -080029 android:layout_width="match_parent"
John Spurlock77e1f472013-09-11 10:09:51 -040030 android:layout_height="match_parent">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080031
Craig Mautner360310b2012-10-26 15:13:08 -070032 <!-- The workspace contains 5 screens of cells -->
Daniel Sandler325dc232013-06-05 22:57:57 -040033 <com.android.launcher3.Workspace
Craig Mautner360310b2012-10-26 15:13:08 -070034 android:id="@+id/workspace"
35 android:layout_width="match_parent"
36 android:layout_height="match_parent"
Adam Cohen9efb4122013-06-06 21:35:12 -070037 launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
Craig Mautner360310b2012-10-26 15:13:08 -070038 launcher:pageSpacing="@dimen/workspace_page_spacing"
Winson Chung5f8afe62013-08-12 16:19:28 -070039 launcher:pageIndicator="@id/page_indicator">
Daniel Sandler325dc232013-06-05 22:57:57 -040040 </com.android.launcher3.Workspace>
Winson Chung604f6df2012-01-12 14:37:57 -080041
Craig Mautner360310b2012-10-26 15:13:08 -070042 <include layout="@layout/hotseat"
43 android:id="@+id/hotseat"
44 android:layout_width="match_parent"
Winson Chung5f8afe62013-08-12 16:19:28 -070045 android:layout_height="match_parent" />
Adam Cohen21b41102011-11-01 17:29:52 -070046
Adam Cohenf358a4b2013-07-23 16:47:31 -070047 <include layout="@layout/overview_panel"
48 android:id="@+id/overview_panel"
49 android:visibility="gone" />
50
51 <!-- Keep these behind the workspace so that they are not visible when
52 we go into AllApps -->
53 <include
54 android:id="@+id/page_indicator"
55 layout="@layout/page_indicator"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
Winson Chung5f8afe62013-08-12 16:19:28 -070058 android:layout_gravity="center_horizontal" />
Adam Cohenf358a4b2013-07-23 16:47:31 -070059
Craig Mautner360310b2012-10-26 15:13:08 -070060 <include
61 android:id="@+id/qsb_bar"
62 layout="@layout/qsb_bar" />
Winson Chung7d7541e2011-09-16 20:14:36 -070063
Winson Chung7819abd2012-11-29 14:29:38 -080064 <!-- The Workspace cling must appear under the AppsCustomizePagedView below to ensure
65 that it is still visible during the transition to AllApps and doesn't overlay on
66 top of that view. -->
67 <include layout="@layout/workspace_cling"
68 android:id="@+id/workspace_cling"
69 android:layout_width="match_parent"
70 android:layout_height="match_parent"
71 android:visibility="gone" />
72
73 <include layout="@layout/folder_cling"
74 android:id="@+id/folder_cling"
75 android:layout_width="match_parent"
76 android:layout_height="match_parent"
77 android:visibility="gone" />
78
Daniel Sandler325dc232013-06-05 22:57:57 -040079 <com.android.launcher3.DrawableStateProxyView
Craig Mautner360310b2012-10-26 15:13:08 -070080 android:id="@+id/voice_button_proxy"
Winson Chung5f8afe62013-08-12 16:19:28 -070081 android:layout_width="0dp"
82 android:layout_height="0dp"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080083 android:layout_gravity="top|end"
Craig Mautner360310b2012-10-26 15:13:08 -070084 android:clickable="true"
85 android:onClick="onClickVoiceButton"
86 android:importantForAccessibility="no"
87 launcher:sourceViewId="@+id/voice_button" />
88
89 <include layout="@layout/apps_customize_pane"
90 android:id="@+id/apps_customize_pane"
91 android:layout_width="match_parent"
92 android:layout_height="match_parent"
93 android:visibility="invisible" />
Daniel Sandler325dc232013-06-05 22:57:57 -040094 </com.android.launcher3.DragLayer>
Michael Jurka496fefb2013-05-06 15:39:11 +020095</FrameLayout>