blob: 3e00381d8777c410a0fb5cd4a7c11b5981452994 [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
Patrick Dubroy558654c2010-07-23 16:48:11 -070025 <include
26 layout="@layout/all_apps_tabbed"
27 android:id="@+id/all_apps_view"
28 android:layout_width="match_parent"
Winson Chung80baf5a2010-08-09 16:03:15 -070029 android:layout_height="550dip"
Patrick Dubroy558654c2010-07-23 16:48:11 -070030 android:layout_gravity="top"/>
Michael Jurkaaf442092010-06-10 17:01:57 -070031
32 <!-- The workspace contains 5 screens of cells -->
33 <com.android.launcher2.Workspace
34 android:id="@+id/workspace"
35 android:layout_width="match_parent"
36 android:layout_height="match_parent"
Michael Jurka54dd7542010-07-30 14:47:52 -070037 launcher:defaultScreen="2"
Adam Cohend22015c2010-07-26 22:02:18 -070038 launcher:cellCountX="8"
Adam Cohenda4dc5e2010-08-10 22:11:35 -070039 launcher:cellCountY="7">
Michael Jurkaaf442092010-06-10 17:01:57 -070040
41 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
42 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
43 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
44 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
45 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
Michael Jurkaaf442092010-06-10 17:01:57 -070046 </com.android.launcher2.Workspace>
47
Adam Cohenda4dc5e2010-08-10 22:11:35 -070048 <RelativeLayout
49 android:id="@+id/search_button_cluster"
Michael Jurka2c3af5f2010-08-03 13:53:20 -070050 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
Adam Cohenda4dc5e2010-08-10 22:11:35 -070052 android:layout_gravity="top|left">
Michael Jurka2c3af5f2010-08-03 13:53:20 -070053
Adam Cohenda4dc5e2010-08-10 22:11:35 -070054 <ImageView
55 android:id="@+id/search_button"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:src="@drawable/search_button"
59
60 android:onClick="onClickSearchButton"
61 android:focusable="true"
62 android:clickable="true"/>
63 <ImageView
64 android:id="@+id/rotate_button"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:src="@drawable/rotate_button"
68
69 android:onClick="onClickRotateButton"
70 android:focusable="true"
71 android:clickable="true"
72 android:layout_toRightOf="@id/search_button" />
73 </RelativeLayout>
74
Michael Jurkaaf442092010-06-10 17:01:57 -070075 <RelativeLayout
76 android:id="@+id/all_apps_button_cluster"
Michael Jurka0e260592010-06-30 17:07:39 -070077 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
79 android:layout_gravity="top|right">
Adam Cohenda4dc5e2010-08-10 22:11:35 -070080
Michael Jurka0e260592010-06-30 17:07:39 -070081 <ImageView
Michael Jurka2c3af5f2010-08-03 13:53:20 -070082 android:id="@+id/configure_button"
Michael Jurka0e260592010-06-30 17:07:39 -070083 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
Michael Jurka2c3af5f2010-08-03 13:53:20 -070085 android:src="@drawable/configure_button"
Michael Jurka0e260592010-06-30 17:07:39 -070086
Michael Jurka2c3af5f2010-08-03 13:53:20 -070087 android:onClick="onClickConfigureButton"
88 android:focusable="true"
89 android:clickable="true" />
Michael Jurka4cb37242010-08-09 21:05:32 -070090 <com.android.launcher2.DeleteZone
91 android:id="@+id/delete_zone"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:paddingTop="@dimen/delete_zone_padding"
95
96 android:scaleType="center"
97 android:src="@drawable/delete_zone_selector"
98 android:visibility="gone"
99 launcher:direction="horizontal" />
Michael Jurka2c3af5f2010-08-03 13:53:20 -0700100 <ImageView
101 android:id="@+id/all_apps_button"
102 android:layout_width="wrap_content"
103 android:layout_height="wrap_content"
104 android:layout_toRightOf="@id/configure_button"
105 android:src="@drawable/all_apps_button"
Michael Jurka0e260592010-06-30 17:07:39 -0700106
Michael Jurka2c3af5f2010-08-03 13:53:20 -0700107 android:onClick="onClickAllAppsButton"
Michael Jurka0e260592010-06-30 17:07:39 -0700108 android:focusable="true"
109 android:clickable="true" />
Michael Jurkaaf442092010-06-10 17:01:57 -0700110 </RelativeLayout>
Michael Jurka0e260592010-06-30 17:07:39 -0700111
112 <TabHost
113 android:id="@android:id/tabhost"
Michael Jurkaaf442092010-06-10 17:01:57 -0700114 android:layout_width="match_parent"
Winson Chung80baf5a2010-08-09 16:03:15 -0700115 android:layout_height="550dip"
Patrick Dubroy3ec8bdd2010-08-06 16:01:33 -0700116 android:layout_gravity="bottom">
Patrick Dubroy558654c2010-07-23 16:48:11 -0700117 <LinearLayout
118 android:orientation="vertical"
Winson Chung80baf5a2010-08-09 16:03:15 -0700119 android:background="#40000000"
Patrick Dubroy558654c2010-07-23 16:48:11 -0700120 android:layout_width="match_parent"
121 android:layout_height="match_parent">
122 <TabWidget
123 android:id="@android:id/tabs"
Winson Chung80baf5a2010-08-09 16:03:15 -0700124 android:layout_width="wrap_content"
125 android:layout_height="wrap_content"
126 android:layout_gravity="center_horizontal"
127 android:tabStripEnabled="false"
128 android:paddingBottom="10dp" />
Patrick Dubroy558654c2010-07-23 16:48:11 -0700129 <FrameLayout
130 android:id="@android:id/tabcontent"
Patrick Dubroy558654c2010-07-23 16:48:11 -0700131 android:layout_width="match_parent"
132 android:layout_height="match_parent">
Patrick Dubroy558654c2010-07-23 16:48:11 -0700133 </FrameLayout>
134 </LinearLayout>
Michael Jurka0e260592010-06-30 17:07:39 -0700135 </TabHost>
Michael Jurkaaf442092010-06-10 17:01:57 -0700136</com.android.launcher2.DragLayer>