blob: 092e018ea05f91f45aef5dfd98c5ff66a72aea57 [file] [log] [blame]
Michael Jurkaaf442092010-06-10 17:01:57 -07001<?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
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
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
20
21 android:id="@+id/drag_layer"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent">
24
25 <include layout="@layout/all_apps" />
26
27 <!-- The workspace contains 5 screens of cells -->
28 <com.android.launcher2.Workspace
29 android:id="@+id/workspace"
30 android:layout_width="match_parent"
31 android:layout_height="match_parent"
32 launcher:defaultScreen="2">
33
34 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
35 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
36 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
37 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
38 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
39
40 </com.android.launcher2.Workspace>
41
42 <com.android.launcher2.DeleteZone
43 android:id="@+id/delete_zone"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:paddingTop="@dimen/delete_zone_padding"
47 android:layout_gravity="top|right"
48
49 android:scaleType="center"
50 android:src="@drawable/delete_zone_selector"
51 android:visibility="gone"
52 launcher:direction="horizontal"
53 />
54 <ImageView
55 android:id="@+id/add_button"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:paddingTop="@dimen/delete_zone_padding"
59 android:layout_gravity="top|right"
60
61 android:scaleType="center"
62 android:src="@drawable/add_button"
63
64 android:onClick="onClickAddButton"
65 android:focusable="true"
66 android:clickable="true" />
67
68 <RelativeLayout
69 android:id="@+id/all_apps_button_cluster"
70 android:layout_width="@dimen/button_bar_height"
71 android:layout_height="@dimen/button_bar_height"
72 android:layout_gravity="top|left"
73 android:paddingTop="2dip"
74 >
75 <com.android.launcher2.HandleView
76 style="@style/HotseatButton"
77 android:id="@+id/all_apps_button"
78 android:layout_centerHorizontal="true"
79 android:layout_alignParentBottom="true"
80
81 android:src="@drawable/all_apps_button"
82 launcher:direction="horizontal"
83 />
84 </RelativeLayout>
85 <com.android.launcher2.WidgetChooser
86 android:id="@+id/widget_chooser"
87 android:layout_width="match_parent"
88 android:layout_height="100dip"
89 android:layout_gravity="bottom"
90 android:visibility="gone"
91 />
92</com.android.launcher2.DragLayer>