blob: f0564cab84d3509fe1819fc715f8b6b742deaf89 [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"
29 android:layout_height="500dip"
30 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"
Winson Chungaafa03c2010-06-11 17:34:16 -070038 launcher:canonicalDeviceWidth="8"
39 launcher:canonicalDeviceHeight="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 Jurkaaf442092010-06-10 17:01:57 -070048 <RelativeLayout
49 android:id="@+id/all_apps_button_cluster"
Michael Jurka0e260592010-06-30 17:07:39 -070050 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_gravity="top|right">
53 <com.android.launcher2.HandleView
54 style="@style/HotseatButton"
55 android:id="@+id/all_apps_button"
Michael Jurka4ab2f862010-07-12 16:36:06 -070056 android:layout_height="@dimen/button_bar_height"
Michael Jurka0e260592010-06-30 17:07:39 -070057 android:layout_width="@dimen/button_bar_height"
Michael Jurkaaf442092010-06-10 17:01:57 -070058
Michael Jurka0e260592010-06-30 17:07:39 -070059 android:src="@drawable/all_apps_button"
60 launcher:direction="horizontal" />
61 <ImageView
62 android:id="@+id/add_button"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:layout_toRightOf="@id/all_apps_button"
66
67 android:layout_centerVertical="true"
68 android:scaleType="center"
69 android:src="@drawable/add_button"
70
71 android:onClick="onClickAddButton"
72 android:focusable="true"
73 android:clickable="true" />
74 <com.android.launcher2.DeleteZone
75 android:id="@+id/delete_zone"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:paddingTop="@dimen/delete_zone_padding"
79 android:layout_toRightOf="@id/all_apps_button"
80
81 android:scaleType="center"
82 android:src="@drawable/delete_zone_selector"
83 android:visibility="gone"
84 launcher:direction="horizontal" />
Michael Jurkaaf442092010-06-10 17:01:57 -070085 </RelativeLayout>
Michael Jurka0e260592010-06-30 17:07:39 -070086
87 <TabHost
88 android:id="@android:id/tabhost"
Michael Jurkaaf442092010-06-10 17:01:57 -070089 android:layout_width="match_parent"
Michael Jurkadee05892010-07-27 10:01:56 -070090 android:layout_height="500dip"
Michael Jurkaaf442092010-06-10 17:01:57 -070091 android:layout_gravity="bottom"
Michael Jurka0e260592010-06-30 17:07:39 -070092 android:visibility="gone">
Patrick Dubroy558654c2010-07-23 16:48:11 -070093 <LinearLayout
94 android:orientation="vertical"
95 android:layout_width="match_parent"
96 android:layout_height="match_parent">
97 <TabWidget
98 android:id="@android:id/tabs"
99 android:layout_width="match_parent"
100 android:layout_height="wrap_content" />
101 <FrameLayout
102 android:id="@android:id/tabcontent"
103 android:background="#ff000000"
104 android:layout_width="match_parent"
105 android:layout_height="match_parent">
106 <com.android.launcher2.WidgetChooser
107 android:id="@+id/widget_chooser"
108 android:layout_width="match_parent"
109 android:layout_height="match_parent" />
110 <com.android.launcher2.FolderChooser
111 android:id="@+id/folder_chooser"
112 android:layout_width="match_parent"
113 android:layout_height="match_parent" />
114 <com.android.launcher2.ShortcutChooser
115 android:id="@+id/shortcut_chooser"
116 android:layout_width="match_parent"
117 android:layout_height="match_parent" />
118 <TextView
119 android:id="@+id/wallpaperstab"
120 android:layout_width="match_parent"
121 android:layout_height="match_parent"
122 android:text="@string/wallpapers_temp_tab_text" />
123 </FrameLayout>
124 </LinearLayout>
Michael Jurka0e260592010-06-30 17:07:39 -0700125 </TabHost>
Michael Jurkaaf442092010-06-10 17:01:57 -0700126</com.android.launcher2.DragLayer>