blob: f8b843773e5ca93ea9b976ce0cd1bbbf4f4173cd [file] [log] [blame]
Michael Jurkaaf442092010-06-10 17:01:57 -07001<?xml version="1.0" encoding="utf-8"?>
Winson Chung0e721a42012-08-02 17:40:30 -07002<!-- Copyright (C) 2007 The Android Open Source Project
Michael Jurkaaf442092010-06-10 17:01:57 -07003
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
Craig Mautner360310b2012-10-26 15:13:08 -070017<!-- Full screen view projects under the status bar and contains the background -->
18<FrameLayout
Winson Chung6fa610d2012-02-24 15:53:17 -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"
Michael Jurkaaf442092010-06-10 17:01:57 -070021
Craig Mautner360310b2012-10-26 15:13:08 -070022 android:id="@+id/launcher"
Michael Jurkaaf442092010-06-10 17:01:57 -070023 android:layout_width="match_parent"
Craig Mautner360310b2012-10-26 15:13:08 -070024 android:layout_height="match_parent"
25 android:background="@drawable/workspace_bg">
Michael Jurkaaf442092010-06-10 17:01:57 -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"
Michael Jurkaaf442092010-06-10 17:01:57 -070029 android:layout_width="match_parent"
Winson Chung0e721a42012-08-02 17:40:30 -070030 android:layout_height="match_parent"
Craig Mautner360310b2012-10-26 15:13:08 -070031 android:fitsSystemWindows="true">
Michael Jurkaaf442092010-06-10 17:01:57 -070032
Sunny Goyaldcbcc862014-08-12 15:58:36 -070033 <com.android.launcher3.FocusIndicatorView
34 android:id="@+id/focus_indicator"
35 android:layout_width="52dp"
36 android:layout_height="52dp" />
37
Craig Mautner360310b2012-10-26 15:13:08 -070038 <!-- The workspace contains 5 screens of cells -->
Daniel Sandler325dc232013-06-05 22:57:57 -040039 <com.android.launcher3.Workspace
Craig Mautner360310b2012-10-26 15:13:08 -070040 android:id="@+id/workspace"
41 android:layout_width="match_parent"
42 android:layout_height="match_parent"
Adam Cohen9efb4122013-06-06 21:35:12 -070043 launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
Winson Chung5f8afe62013-08-12 16:19:28 -070044 launcher:pageIndicator="@id/page_indicator">
Daniel Sandler325dc232013-06-05 22:57:57 -040045 </com.android.launcher3.Workspace>
Winson Chung97d85d22011-04-13 11:27:36 -070046
Craig Mautner360310b2012-10-26 15:13:08 -070047 <include layout="@layout/hotseat"
48 android:id="@+id/hotseat"
49 android:layout_width="match_parent"
Winson Chung5f8afe62013-08-12 16:19:28 -070050 android:layout_height="match_parent" />
Winson Chung82f55532011-08-09 14:14:23 -070051
Craig Mautner360310b2012-10-26 15:13:08 -070052 <include
Adam Cohen24ce0b32014-01-14 16:18:14 -080053 android:id="@+id/search_drop_target_bar"
54 layout="@layout/search_drop_target_bar" />
Winson Chungd0160152011-11-15 15:04:42 -080055
Adam Cohenf358a4b2013-07-23 16:47:31 -070056 <include layout="@layout/overview_panel"
57 android:id="@+id/overview_panel"
58 android:visibility="gone" />
59
60 <!-- Keep these behind the workspace so that they are not visible when
61 we go into AllApps -->
62 <include
63 android:id="@+id/page_indicator"
64 layout="@layout/page_indicator"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
Winson Chung5f8afe62013-08-12 16:19:28 -070067 android:layout_gravity="center_horizontal" />
Adam Cohenf358a4b2013-07-23 16:47:31 -070068
Winson Chung7819abd2012-11-29 14:29:38 -080069 <!-- The Workspace cling must appear under the AppsCustomizePagedView below to ensure
70 that it is still visible during the transition to AllApps and doesn't overlay on
71 top of that view. -->
Winson Chung205cd772014-01-15 14:31:59 -080072 <com.android.launcher3.ScrimView
73 android:id="@+id/cling_scrim"
74 android:layout_width="match_parent"
75 android:layout_height="match_parent"
76 android:visibility="gone" />
Winson Chungaf40f202013-09-18 18:26:31 -070077 <include layout="@layout/first_run_cling"
78 android:id="@+id/first_run_cling"
79 android:layout_width="match_parent"
80 android:layout_height="match_parent"
81 android:visibility="gone" />
Winson Chung205cd772014-01-15 14:31:59 -080082 <include layout="@layout/migration_cling"
83 android:id="@+id/migration_cling"
84 android:layout_width="match_parent"
85 android:layout_height="match_parent"
86 android:visibility="gone" />
87 <include layout="@layout/migration_workspace_cling"
88 android:id="@+id/migration_workspace_cling"
89 android:layout_width="match_parent"
90 android:layout_height="match_parent"
91 android:visibility="gone" />
Winson Chung7819abd2012-11-29 14:29:38 -080092 <include layout="@layout/workspace_cling"
93 android:id="@+id/workspace_cling"
94 android:layout_width="match_parent"
95 android:layout_height="match_parent"
96 android:visibility="gone" />
Winson Chung7819abd2012-11-29 14:29:38 -080097 <include layout="@layout/folder_cling"
98 android:id="@+id/folder_cling"
99 android:layout_width="match_parent"
100 android:layout_height="match_parent"
101 android:visibility="gone" />
102
Daniel Sandler325dc232013-06-05 22:57:57 -0400103 <com.android.launcher3.DrawableStateProxyView
Craig Mautner360310b2012-10-26 15:13:08 -0700104 android:id="@+id/voice_button_proxy"
Winson Chung5f8afe62013-08-12 16:19:28 -0700105 android:layout_width="0dp"
106 android:layout_height="0dp"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -0800107 android:layout_gravity="top|end"
Craig Mautner360310b2012-10-26 15:13:08 -0700108 android:clickable="true"
109 android:onClick="onClickVoiceButton"
110 android:importantForAccessibility="no"
111 launcher:sourceViewId="@+id/voice_button" />
112
113 <include layout="@layout/apps_customize_pane"
114 android:id="@+id/apps_customize_pane"
115 android:layout_width="match_parent"
116 android:layout_height="match_parent"
117 android:visibility="invisible" />
Daniel Sandler325dc232013-06-05 22:57:57 -0400118 </com.android.launcher3.DragLayer>
Michael Jurka496fefb2013-05-06 15:39:11 +0200119</FrameLayout>