blob: 9ddb1355c2cc8bacc971c99c5eadaba4bdba00c4 [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
17<com.android.launcher2.DragLayer
Winson Chung6fa610d2012-02-24 15:53:17 -080018 xmlns:android="http://schemas.android.com/apk/res/android"
Winson Chung0e721a42012-08-02 17:40:30 -070019 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
Michael Jurkaaf442092010-06-10 17:01:57 -070020
21 android:id="@+id/drag_layer"
Winson Chung0e721a42012-08-02 17:40:30 -070022 android:background="@drawable/workspace_bg"
Michael Jurkaaf442092010-06-10 17:01:57 -070023 android:layout_width="match_parent"
Winson Chung0e721a42012-08-02 17:40:30 -070024 android:layout_height="match_parent">
Michael Jurkaaf442092010-06-10 17:01:57 -070025
Winson Chung0e721a42012-08-02 17:40:30 -070026 <!-- Keep these behind the workspace so that they are not visible when
27 we go into AllApps -->
28 <include
29 android:id="@+id/dock_divider"
30 layout="@layout/workspace_divider"
31 android:layout_width="@dimen/workspace_divider_width"
32 android:layout_height="wrap_content"
33 android:layout_marginBottom="@dimen/button_bar_height"
34 android:layout_gravity="bottom|center_horizontal" />
35 <include
36 android:id="@+id/paged_view_indicator"
37 layout="@layout/scroll_indicator"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:layout_gravity="bottom"
41 android:layout_marginBottom="@dimen/button_bar_height" />
42
43 <!-- The workspace contains 5 screens of cells -->
44 <com.android.launcher2.Workspace
Michael Jurkaaf442092010-06-10 17:01:57 -070045 android:id="@+id/workspace"
46 android:layout_width="match_parent"
Winson Chung0e721a42012-08-02 17:40:30 -070047 android:layout_height="match_parent"
48 android:paddingLeft="@dimen/workspace_left_padding"
49 android:paddingRight="@dimen/workspace_right_padding"
50 android:paddingTop="@dimen/workspace_top_padding"
51 android:paddingBottom="@dimen/workspace_bottom_padding"
52 launcher:defaultScreen="2"
53 launcher:cellCountX="@integer/cell_count_x"
54 launcher:cellCountY="@integer/cell_count_y"
55 launcher:pageSpacing="@dimen/workspace_page_spacing"
56 launcher:scrollIndicatorPaddingLeft="@dimen/workspace_divider_padding_left"
57 launcher:scrollIndicatorPaddingRight="@dimen/workspace_divider_padding_right">
Michael Jurkaaf442092010-06-10 17:01:57 -070058
Winson Chung0e721a42012-08-02 17:40:30 -070059 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
60 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
61 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
62 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
63 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
64 </com.android.launcher2.Workspace>
65
66 <include layout="@layout/hotseat"
67 android:id="@+id/hotseat"
Winson Chungf0ea4d32011-06-06 14:27:16 -070068 android:layout_width="match_parent"
Winson Chung0e721a42012-08-02 17:40:30 -070069 android:layout_height="@dimen/button_bar_height_plus_padding"
70 android:layout_gravity="bottom" />
71
72 <include
73 android:id="@+id/qsb_bar"
74 layout="@layout/qsb_bar" />
75
76 <com.android.launcher2.DrawableStateProxyView
77 android:id="@+id/voice_button_proxy"
78 android:layout_width="80dp"
Winson Chungf0ea4d32011-06-06 14:27:16 -070079 android:layout_height="@dimen/qsb_bar_height"
Winson Chung0e721a42012-08-02 17:40:30 -070080 android:layout_marginRight="@dimen/qsb_voice_proxy_padding_right"
81 android:layout_gravity="top|right"
82 android:clickable="true"
83 android:onClick="onClickVoiceButton"
84 android:importantForAccessibility="no"
85 launcher:sourceViewId="@+id/voice_button" />
Winson Chung97d85d22011-04-13 11:27:36 -070086
Winson Chungf0ea4d32011-06-06 14:27:16 -070087 <include layout="@layout/apps_customize_pane"
88 android:id="@+id/apps_customize_pane"
Adam Lesinski6b879f02010-11-04 16:15:23 -070089 android:layout_width="match_parent"
90 android:layout_height="match_parent"
Winson Chung785d2eb2011-04-14 16:08:02 -070091 android:visibility="invisible" />
Winson Chung82f55532011-08-09 14:14:23 -070092
93 <include layout="@layout/workspace_cling"
94 android:id="@+id/workspace_cling"
95 android:layout_width="match_parent"
96 android:layout_height="match_parent"
97 android:visibility="gone" />
Winson Chungd0160152011-11-15 15:04:42 -080098
99 <include layout="@layout/folder_cling"
100 android:id="@+id/folder_cling"
101 android:layout_width="match_parent"
102 android:layout_height="match_parent"
103 android:visibility="gone" />
Michael Jurkaaf442092010-06-10 17:01:57 -0700104</com.android.launcher2.DragLayer>