blob: 780f4366ed2b889ef9cd63a1f5b2ba036b6607e0 [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"
30 android:layout_height="match_parent"
Craig Mautner360310b2012-10-26 15:13:08 -070031 android:fitsSystemWindows="true">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080032
Craig Mautner360310b2012-10-26 15:13:08 -070033 <!-- Keep these behind the workspace so that they are not visible when
34 we go into AllApps -->
35 <include
36 android:id="@+id/dock_divider"
37 layout="@layout/workspace_divider"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:layout_marginBottom="@dimen/button_bar_height"
41 android:layout_gravity="bottom" />
Winson Chung3ac74c52011-06-30 17:39:37 -070042
Craig Mautner360310b2012-10-26 15:13:08 -070043 <include
44 android:id="@+id/paged_view_indicator"
45 layout="@layout/scroll_indicator"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:layout_gravity="bottom"
49 android:layout_marginBottom="@dimen/button_bar_height" />
Winson Chung82f55532011-08-09 14:14:23 -070050
Craig Mautner360310b2012-10-26 15:13:08 -070051 <!-- The workspace contains 5 screens of cells -->
Daniel Sandler325dc232013-06-05 22:57:57 -040052 <com.android.launcher3.Workspace
Craig Mautner360310b2012-10-26 15:13:08 -070053 android:id="@+id/workspace"
54 android:layout_width="match_parent"
55 android:layout_height="match_parent"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080056 android:paddingStart="@dimen/workspace_left_padding"
57 android:paddingEnd="@dimen/workspace_right_padding"
Craig Mautner360310b2012-10-26 15:13:08 -070058 android:paddingTop="@dimen/workspace_top_padding"
59 android:paddingBottom="@dimen/workspace_bottom_padding"
60 launcher:defaultScreen="2"
61 launcher:cellCountX="@integer/cell_count_x"
62 launcher:cellCountY="@integer/cell_count_y"
63 launcher:pageSpacing="@dimen/workspace_page_spacing"
64 launcher:scrollIndicatorPaddingLeft="@dimen/workspace_divider_padding_left"
65 launcher:scrollIndicatorPaddingRight="@dimen/workspace_divider_padding_right">
Adam Cohene29c55a2012-08-23 12:18:16 -070066
Craig Mautner360310b2012-10-26 15:13:08 -070067 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
68 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
69 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
70 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
71 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
Daniel Sandler325dc232013-06-05 22:57:57 -040072 </com.android.launcher3.Workspace>
Winson Chung604f6df2012-01-12 14:37:57 -080073
Craig Mautner360310b2012-10-26 15:13:08 -070074 <include layout="@layout/hotseat"
75 android:id="@+id/hotseat"
76 android:layout_width="match_parent"
77 android:layout_height="@dimen/button_bar_height_plus_padding"
78 android:layout_gravity="bottom" />
Adam Cohen21b41102011-11-01 17:29:52 -070079
Craig Mautner360310b2012-10-26 15:13:08 -070080 <include
81 android:id="@+id/qsb_bar"
82 layout="@layout/qsb_bar" />
Winson Chung7d7541e2011-09-16 20:14:36 -070083
Winson Chung7819abd2012-11-29 14:29:38 -080084 <!-- The Workspace cling must appear under the AppsCustomizePagedView below to ensure
85 that it is still visible during the transition to AllApps and doesn't overlay on
86 top of that view. -->
87 <include layout="@layout/workspace_cling"
88 android:id="@+id/workspace_cling"
89 android:layout_width="match_parent"
90 android:layout_height="match_parent"
91 android:visibility="gone" />
92
93 <include layout="@layout/folder_cling"
94 android:id="@+id/folder_cling"
95 android:layout_width="match_parent"
96 android:layout_height="match_parent"
97 android:visibility="gone" />
98
Daniel Sandler325dc232013-06-05 22:57:57 -040099 <com.android.launcher3.DrawableStateProxyView
Craig Mautner360310b2012-10-26 15:13:08 -0700100 android:id="@+id/voice_button_proxy"
101 android:layout_width="80dp"
102 android:layout_height="@dimen/qsb_bar_height"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -0800103 android:layout_gravity="top|end"
Craig Mautner360310b2012-10-26 15:13:08 -0700104 android:clickable="true"
105 android:onClick="onClickVoiceButton"
106 android:importantForAccessibility="no"
107 launcher:sourceViewId="@+id/voice_button" />
108
109 <include layout="@layout/apps_customize_pane"
110 android:id="@+id/apps_customize_pane"
111 android:layout_width="match_parent"
112 android:layout_height="match_parent"
113 android:visibility="invisible" />
Daniel Sandler325dc232013-06-05 22:57:57 -0400114 </com.android.launcher3.DragLayer>
Michael Jurka496fefb2013-05-06 15:39:11 +0200115</FrameLayout>