blob: ad7eff4bac3b8db89fd8204967c7f266e2545f52 [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"
Romain Guy4f209472010-03-04 12:07:31 -080020 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
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
Craig Mautner360310b2012-10-26 15:13:08 -070027 <com.android.launcher2.DragLayer
28 xmlns:android="http://schemas.android.com/apk/res/android"
29 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
Winson Chung32174c82011-07-19 15:47:55 -070030
Craig Mautner360310b2012-10-26 15:13:08 -070031 android:id="@+id/drag_layer"
32 android:background="@drawable/workspace_bg"
Romain Guy8f19cdd2010-01-08 15:07:00 -080033 android:layout_width="match_parent"
34 android:layout_height="match_parent"
Craig Mautner360310b2012-10-26 15:13:08 -070035 android:fitsSystemWindows="true">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080036
Craig Mautner360310b2012-10-26 15:13:08 -070037 <!-- Keep these behind the workspace so that they are not visible when
38 we go into AllApps -->
39 <include
40 android:id="@+id/dock_divider"
41 layout="@layout/workspace_divider"
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
44 android:layout_marginBottom="@dimen/button_bar_height"
45 android:layout_gravity="bottom" />
Winson Chung3ac74c52011-06-30 17:39:37 -070046
Craig Mautner360310b2012-10-26 15:13:08 -070047 <include
48 android:id="@+id/paged_view_indicator"
49 layout="@layout/scroll_indicator"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_gravity="bottom"
53 android:layout_marginBottom="@dimen/button_bar_height" />
Winson Chung82f55532011-08-09 14:14:23 -070054
Craig Mautner360310b2012-10-26 15:13:08 -070055 <!-- The workspace contains 5 screens of cells -->
56 <com.android.launcher2.Workspace
57 android:id="@+id/workspace"
58 android:layout_width="match_parent"
59 android:layout_height="match_parent"
60 android:paddingLeft="@dimen/workspace_left_padding"
61 android:paddingRight="@dimen/workspace_right_padding"
62 android:paddingTop="@dimen/workspace_top_padding"
63 android:paddingBottom="@dimen/workspace_bottom_padding"
64 launcher:defaultScreen="2"
65 launcher:cellCountX="@integer/cell_count_x"
66 launcher:cellCountY="@integer/cell_count_y"
67 launcher:pageSpacing="@dimen/workspace_page_spacing"
68 launcher:scrollIndicatorPaddingLeft="@dimen/workspace_divider_padding_left"
69 launcher:scrollIndicatorPaddingRight="@dimen/workspace_divider_padding_right">
Adam Cohene29c55a2012-08-23 12:18:16 -070070
Craig Mautner360310b2012-10-26 15:13:08 -070071 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
72 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
73 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
74 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
75 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
76 </com.android.launcher2.Workspace>
Winson Chung604f6df2012-01-12 14:37:57 -080077
Craig Mautner360310b2012-10-26 15:13:08 -070078 <include layout="@layout/hotseat"
79 android:id="@+id/hotseat"
80 android:layout_width="match_parent"
81 android:layout_height="@dimen/button_bar_height_plus_padding"
82 android:layout_gravity="bottom" />
Adam Cohen21b41102011-11-01 17:29:52 -070083
Craig Mautner360310b2012-10-26 15:13:08 -070084 <include
85 android:id="@+id/qsb_bar"
86 layout="@layout/qsb_bar" />
Winson Chung7d7541e2011-09-16 20:14:36 -070087
Craig Mautner360310b2012-10-26 15:13:08 -070088 <com.android.launcher2.DrawableStateProxyView
89 android:id="@+id/voice_button_proxy"
90 android:layout_width="80dp"
91 android:layout_height="@dimen/qsb_bar_height"
92 android:layout_gravity="top|right"
93 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" />
103
104 <include layout="@layout/workspace_cling"
105 android:id="@+id/workspace_cling"
106 android:layout_width="match_parent"
107 android:layout_height="match_parent"
108 android:visibility="gone" />
109
110 <include layout="@layout/folder_cling"
111 android:id="@+id/folder_cling"
112 android:layout_width="match_parent"
113 android:layout_height="match_parent"
114 android:visibility="gone" />
115 </com.android.launcher2.DragLayer>
116</FrameLayout>