blob: 72cd7962f506258f4886ba966494bc2090f05bb1 [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"
Winson Chungaafa03c2010-06-11 17:34:16 -070032 launcher:canonicalDeviceWidth="8"
33 launcher:canonicalDeviceHeight="4">
Michael Jurkaaf442092010-06-10 17:01:57 -070034
35 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
36 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
37 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
38 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
39 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
Michael Jurkaaf442092010-06-10 17:01:57 -070040 </com.android.launcher2.Workspace>
41
Michael Jurkaaf442092010-06-10 17:01:57 -070042
Michael Jurkaaf442092010-06-10 17:01:57 -070043
44 <RelativeLayout
45 android:id="@+id/all_apps_button_cluster"
Michael Jurka0e260592010-06-30 17:07:39 -070046 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:layout_gravity="top|right">
49 <com.android.launcher2.HandleView
50 style="@style/HotseatButton"
51 android:id="@+id/all_apps_button"
Michael Jurka4ab2f862010-07-12 16:36:06 -070052 android:layout_height="@dimen/button_bar_height"
Michael Jurka0e260592010-06-30 17:07:39 -070053 android:layout_width="@dimen/button_bar_height"
Michael Jurkaaf442092010-06-10 17:01:57 -070054
Michael Jurka0e260592010-06-30 17:07:39 -070055 android:src="@drawable/all_apps_button"
56 launcher:direction="horizontal" />
57 <ImageView
58 android:id="@+id/add_button"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_toRightOf="@id/all_apps_button"
62
63 android:layout_centerVertical="true"
64 android:scaleType="center"
65 android:src="@drawable/add_button"
66
67 android:onClick="onClickAddButton"
68 android:focusable="true"
69 android:clickable="true" />
70 <com.android.launcher2.DeleteZone
71 android:id="@+id/delete_zone"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:paddingTop="@dimen/delete_zone_padding"
75 android:layout_toRightOf="@id/all_apps_button"
76
77 android:scaleType="center"
78 android:src="@drawable/delete_zone_selector"
79 android:visibility="gone"
80 launcher:direction="horizontal" />
Michael Jurkaaf442092010-06-10 17:01:57 -070081 </RelativeLayout>
Michael Jurka0e260592010-06-30 17:07:39 -070082
83 <TabHost
84 android:id="@android:id/tabhost"
Michael Jurkaaf442092010-06-10 17:01:57 -070085 android:layout_width="match_parent"
Michael Jurka0e260592010-06-30 17:07:39 -070086 android:layout_height="200dip"
Michael Jurkaaf442092010-06-10 17:01:57 -070087 android:layout_gravity="bottom"
Michael Jurka0e260592010-06-30 17:07:39 -070088 android:visibility="gone">
89 <LinearLayout
90 android:orientation="vertical"
91 android:layout_width="match_parent"
92 android:layout_height="match_parent">
93 <TabWidget
94 android:id="@android:id/tabs"
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content" />
97 <FrameLayout
98 android:id="@android:id/tabcontent"
99 android:background="#ff000000"
100 android:layout_width="match_parent"
101 android:layout_height="match_parent">
102 <com.android.launcher2.WidgetChooser
103 android:id="@+id/widget_chooser"
104 android:layout_width="match_parent"
105 android:layout_height="match_parent" />
106 <com.android.launcher2.FolderChooser
107 android:id="@+id/folder_chooser"
108 android:layout_width="match_parent"
109 android:layout_height="match_parent" />
110 <com.android.launcher2.ShortcutChooser
111 android:id="@+id/shortcut_chooser"
112 android:layout_width="match_parent"
113 android:layout_height="match_parent" />
114 <TextView
115 android:id="@+id/wallpaperstab"
116 android:layout_width="match_parent"
117 android:layout_height="match_parent"
118 android:text="@string/wallpapers_temp_tab_text" />
119 </FrameLayout>
120 </LinearLayout>
121 </TabHost>
Michael Jurkaaf442092010-06-10 17:01:57 -0700122</com.android.launcher2.DragLayer>