blob: 6eb9318b453beea457ac7ddabb793e062a8d0136 [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"
Patrick Dubroy3ec8bdd2010-08-06 16:01:33 -070029 android:layout_height="500dip"
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"
39 launcher:cellCountY="4">
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
Michael Jurka2c3af5f2010-08-03 13:53:20 -070048 <ImageView
49 android:id="@+id/search_button"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:src="@drawable/search_button"
53
54 android:onClick="onClickSearchButton"
55 android:focusable="true"
56 android:clickable="true"
57 android:layout_gravity="top|left"/>
Michael Jurkaaf442092010-06-10 17:01:57 -070058 <RelativeLayout
59 android:id="@+id/all_apps_button_cluster"
Michael Jurka0e260592010-06-30 17:07:39 -070060 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:layout_gravity="top|right">
Michael Jurka0e260592010-06-30 17:07:39 -070063 <ImageView
Michael Jurka2c3af5f2010-08-03 13:53:20 -070064 android:id="@+id/configure_button"
Michael Jurka0e260592010-06-30 17:07:39 -070065 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
Michael Jurka2c3af5f2010-08-03 13:53:20 -070067 android:src="@drawable/configure_button"
Michael Jurka0e260592010-06-30 17:07:39 -070068
Michael Jurka2c3af5f2010-08-03 13:53:20 -070069 android:onClick="onClickConfigureButton"
70 android:focusable="true"
71 android:clickable="true" />
Michael Jurka4cb37242010-08-09 21:05:32 -070072 <com.android.launcher2.DeleteZone
73 android:id="@+id/delete_zone"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:paddingTop="@dimen/delete_zone_padding"
77
78 android:scaleType="center"
79 android:src="@drawable/delete_zone_selector"
80 android:visibility="gone"
81 launcher:direction="horizontal" />
Michael Jurka2c3af5f2010-08-03 13:53:20 -070082 <ImageView
83 android:id="@+id/all_apps_button"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:layout_toRightOf="@id/configure_button"
87 android:src="@drawable/all_apps_button"
Michael Jurka0e260592010-06-30 17:07:39 -070088
Michael Jurka2c3af5f2010-08-03 13:53:20 -070089 android:onClick="onClickAllAppsButton"
Michael Jurka0e260592010-06-30 17:07:39 -070090 android:focusable="true"
91 android:clickable="true" />
Michael Jurkaaf442092010-06-10 17:01:57 -070092 </RelativeLayout>
Michael Jurka0e260592010-06-30 17:07:39 -070093
94 <TabHost
95 android:id="@android:id/tabhost"
Michael Jurkaaf442092010-06-10 17:01:57 -070096 android:layout_width="match_parent"
Michael Jurkadee05892010-07-27 10:01:56 -070097 android:layout_height="500dip"
Patrick Dubroy3ec8bdd2010-08-06 16:01:33 -070098 android:layout_gravity="bottom">
Patrick Dubroy558654c2010-07-23 16:48:11 -070099 <LinearLayout
100 android:orientation="vertical"
101 android:layout_width="match_parent"
102 android:layout_height="match_parent">
103 <TabWidget
104 android:id="@android:id/tabs"
105 android:layout_width="match_parent"
106 android:layout_height="wrap_content" />
107 <FrameLayout
108 android:id="@android:id/tabcontent"
109 android:background="#ff000000"
110 android:layout_width="match_parent"
111 android:layout_height="match_parent">
112 <com.android.launcher2.WidgetChooser
113 android:id="@+id/widget_chooser"
114 android:layout_width="match_parent"
115 android:layout_height="match_parent" />
116 <com.android.launcher2.FolderChooser
117 android:id="@+id/folder_chooser"
118 android:layout_width="match_parent"
119 android:layout_height="match_parent" />
120 <com.android.launcher2.ShortcutChooser
121 android:id="@+id/shortcut_chooser"
122 android:layout_width="match_parent"
123 android:layout_height="match_parent" />
124 <TextView
125 android:id="@+id/wallpaperstab"
126 android:layout_width="match_parent"
127 android:layout_height="match_parent"
128 android:text="@string/wallpapers_temp_tab_text" />
129 </FrameLayout>
130 </LinearLayout>
Michael Jurka0e260592010-06-30 17:07:39 -0700131 </TabHost>
Michael Jurkaaf442092010-06-10 17:01:57 -0700132</com.android.launcher2.DragLayer>