blob: ce864c285cff28404de379903d6fc28e76ede670 [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"
52 android:layout_width="@dimen/button_bar_height"
Michael Jurkaaf442092010-06-10 17:01:57 -070053
Michael Jurka0e260592010-06-30 17:07:39 -070054 android:src="@drawable/all_apps_button"
55 launcher:direction="horizontal" />
56 <ImageView
57 android:id="@+id/add_button"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:layout_toRightOf="@id/all_apps_button"
61
62 android:layout_centerVertical="true"
63 android:scaleType="center"
64 android:src="@drawable/add_button"
65
66 android:onClick="onClickAddButton"
67 android:focusable="true"
68 android:clickable="true" />
69 <com.android.launcher2.DeleteZone
70 android:id="@+id/delete_zone"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:paddingTop="@dimen/delete_zone_padding"
74 android:layout_toRightOf="@id/all_apps_button"
75
76 android:scaleType="center"
77 android:src="@drawable/delete_zone_selector"
78 android:visibility="gone"
79 launcher:direction="horizontal" />
Michael Jurkaaf442092010-06-10 17:01:57 -070080 </RelativeLayout>
Michael Jurka0e260592010-06-30 17:07:39 -070081
82 <TabHost
83 android:id="@android:id/tabhost"
Michael Jurkaaf442092010-06-10 17:01:57 -070084 android:layout_width="match_parent"
Michael Jurka0e260592010-06-30 17:07:39 -070085 android:layout_height="200dip"
Michael Jurkaaf442092010-06-10 17:01:57 -070086 android:layout_gravity="bottom"
Michael Jurka0e260592010-06-30 17:07:39 -070087 android:visibility="gone">
88 <LinearLayout
89 android:orientation="vertical"
90 android:layout_width="match_parent"
91 android:layout_height="match_parent">
92 <TabWidget
93 android:id="@android:id/tabs"
94 android:layout_width="match_parent"
95 android:layout_height="wrap_content" />
96 <FrameLayout
97 android:id="@android:id/tabcontent"
98 android:background="#ff000000"
99 android:layout_width="match_parent"
100 android:layout_height="match_parent">
101 <com.android.launcher2.WidgetChooser
102 android:id="@+id/widget_chooser"
103 android:layout_width="match_parent"
104 android:layout_height="match_parent" />
105 <com.android.launcher2.FolderChooser
106 android:id="@+id/folder_chooser"
107 android:layout_width="match_parent"
108 android:layout_height="match_parent" />
109 <com.android.launcher2.ShortcutChooser
110 android:id="@+id/shortcut_chooser"
111 android:layout_width="match_parent"
112 android:layout_height="match_parent" />
113 <TextView
114 android:id="@+id/wallpaperstab"
115 android:layout_width="match_parent"
116 android:layout_height="match_parent"
117 android:text="@string/wallpapers_temp_tab_text" />
118 </FrameLayout>
119 </LinearLayout>
120 </TabHost>
Michael Jurkaaf442092010-06-10 17:01:57 -0700121</com.android.launcher2.DragLayer>