blob: 852d1ec21c3aa7b6ca97aaade9da8b43b6f91a08 [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
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
Winson Chungd2be3812013-07-16 11:11:32 -070036 android:id="@+id/page_indicator"
37 layout="@layout/page_indicator"
Craig Mautner360310b2012-10-26 15:13:08 -070038 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
Winson Chungd2be3812013-07-16 11:11:32 -070040 android:layout_gravity="bottom|center_horizontal"
Craig Mautner360310b2012-10-26 15:13:08 -070041 android:layout_marginBottom="@dimen/button_bar_height_plus_padding" />
Winson Chung0e721a42012-08-02 17:40:30 -070042
Craig Mautner360310b2012-10-26 15:13:08 -070043 <!-- The workspace contains 5 screens of cells -->
Daniel Sandler325dc232013-06-05 22:57:57 -040044 <com.android.launcher3.Workspace
Craig Mautner360310b2012-10-26 15:13:08 -070045 android:id="@+id/workspace"
46 android:layout_width="match_parent"
47 android:layout_height="match_parent"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080048 android:paddingStart="@dimen/workspace_left_padding"
49 android:paddingEnd="@dimen/workspace_right_padding"
Craig Mautner360310b2012-10-26 15:13:08 -070050 android:paddingTop="@dimen/workspace_top_padding"
51 android:paddingBottom="@dimen/workspace_bottom_padding"
Adam Cohend6e7aa32013-07-09 15:32:37 -070052 android:layout_gravity="center"
Adam Cohen9efb4122013-06-06 21:35:12 -070053 launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
Craig Mautner360310b2012-10-26 15:13:08 -070054 launcher:cellCountX="@integer/cell_count_x"
55 launcher:cellCountY="@integer/cell_count_y"
56 launcher:pageSpacing="@dimen/workspace_page_spacing"
Winson Chungd2be3812013-07-16 11:11:32 -070057 launcher:pageIndicator="@id/page_indicator"
Craig Mautner360310b2012-10-26 15:13:08 -070058 launcher:scrollIndicatorPaddingLeft="@dimen/workspace_divider_padding_left"
59 launcher:scrollIndicatorPaddingRight="@dimen/workspace_divider_padding_right">
Daniel Sandler325dc232013-06-05 22:57:57 -040060 </com.android.launcher3.Workspace>
Winson Chung97d85d22011-04-13 11:27:36 -070061
Craig Mautner360310b2012-10-26 15:13:08 -070062 <include layout="@layout/hotseat"
63 android:id="@+id/hotseat"
64 android:layout_width="match_parent"
65 android:layout_height="@dimen/button_bar_height_plus_padding"
66 android:layout_gravity="bottom" />
Winson Chung82f55532011-08-09 14:14:23 -070067
Craig Mautner360310b2012-10-26 15:13:08 -070068 <include
69 android:id="@+id/qsb_bar"
70 layout="@layout/qsb_bar" />
Winson Chungd0160152011-11-15 15:04:42 -080071
Winson Chung7819abd2012-11-29 14:29:38 -080072 <!-- The Workspace cling must appear under the AppsCustomizePagedView below to ensure
73 that it is still visible during the transition to AllApps and doesn't overlay on
74 top of that view. -->
75 <include layout="@layout/workspace_cling"
76 android:id="@+id/workspace_cling"
77 android:layout_width="match_parent"
78 android:layout_height="match_parent"
79 android:visibility="gone" />
80
81 <include layout="@layout/folder_cling"
82 android:id="@+id/folder_cling"
83 android:layout_width="match_parent"
84 android:layout_height="match_parent"
85 android:visibility="gone" />
86
Daniel Sandler325dc232013-06-05 22:57:57 -040087 <com.android.launcher3.DrawableStateProxyView
Craig Mautner360310b2012-10-26 15:13:08 -070088 android:id="@+id/voice_button_proxy"
89 android:layout_width="80dp"
90 android:layout_height="@dimen/qsb_bar_height"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080091 android:layout_marginEnd="@dimen/qsb_voice_proxy_padding_right"
92 android:layout_gravity="top|end"
Craig Mautner360310b2012-10-26 15:13:08 -070093 android:clickable="true"
94 android:onClick="onClickVoiceButton"
95 android:importantForAccessibility="no"
96 launcher:sourceViewId="@+id/voice_button" />
97
98 <include layout="@layout/apps_customize_pane"
99 android:id="@+id/apps_customize_pane"
100 android:layout_width="match_parent"
101 android:layout_height="match_parent"
102 android:visibility="invisible" />
Daniel Sandler325dc232013-06-05 22:57:57 -0400103 </com.android.launcher3.DragLayer>
Michael Jurka496fefb2013-05-06 15:39:11 +0200104</FrameLayout>