blob: 3f56b4546c3384055fba68088a66d2de8c4de5fc [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"
Winson Chungaafa03c2010-06-11 17:34:16 -070037 launcher:canonicalDeviceWidth="8"
38 launcher:canonicalDeviceHeight="4">
Michael Jurkaaf442092010-06-10 17:01:57 -070039
40 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
41 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
42 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
43 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
44 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
Michael Jurkaaf442092010-06-10 17:01:57 -070045 </com.android.launcher2.Workspace>
46
Michael Jurkaaf442092010-06-10 17:01:57 -070047 <RelativeLayout
48 android:id="@+id/all_apps_button_cluster"
Michael Jurka0e260592010-06-30 17:07:39 -070049 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_gravity="top|right">
52 <com.android.launcher2.HandleView
53 style="@style/HotseatButton"
54 android:id="@+id/all_apps_button"
Michael Jurka4ab2f862010-07-12 16:36:06 -070055 android:layout_height="@dimen/button_bar_height"
Michael Jurka0e260592010-06-30 17:07:39 -070056 android:layout_width="@dimen/button_bar_height"
Michael Jurkaaf442092010-06-10 17:01:57 -070057
Michael Jurka0e260592010-06-30 17:07:39 -070058 android:src="@drawable/all_apps_button"
59 launcher:direction="horizontal" />
60 <ImageView
61 android:id="@+id/add_button"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:layout_toRightOf="@id/all_apps_button"
65
66 android:layout_centerVertical="true"
67 android:scaleType="center"
68 android:src="@drawable/add_button"
69
70 android:onClick="onClickAddButton"
71 android:focusable="true"
72 android:clickable="true" />
73 <com.android.launcher2.DeleteZone
74 android:id="@+id/delete_zone"
75 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:paddingTop="@dimen/delete_zone_padding"
78 android:layout_toRightOf="@id/all_apps_button"
79
80 android:scaleType="center"
81 android:src="@drawable/delete_zone_selector"
82 android:visibility="gone"
83 launcher:direction="horizontal" />
Michael Jurkaaf442092010-06-10 17:01:57 -070084 </RelativeLayout>
Michael Jurka0e260592010-06-30 17:07:39 -070085
86 <TabHost
87 android:id="@android:id/tabhost"
Michael Jurkaaf442092010-06-10 17:01:57 -070088 android:layout_width="match_parent"
Michael Jurkadee05892010-07-27 10:01:56 -070089 android:layout_height="500dip"
Michael Jurkaaf442092010-06-10 17:01:57 -070090 android:layout_gravity="bottom"
Michael Jurka0e260592010-06-30 17:07:39 -070091 android:visibility="gone">
Patrick Dubroy558654c2010-07-23 16:48:11 -070092 <LinearLayout
93 android:orientation="vertical"
94 android:layout_width="match_parent"
95 android:layout_height="match_parent">
96 <TabWidget
97 android:id="@android:id/tabs"
98 android:layout_width="match_parent"
99 android:layout_height="wrap_content" />
100 <FrameLayout
101 android:id="@android:id/tabcontent"
102 android:background="#ff000000"
103 android:layout_width="match_parent"
104 android:layout_height="match_parent">
105 <com.android.launcher2.WidgetChooser
106 android:id="@+id/widget_chooser"
107 android:layout_width="match_parent"
108 android:layout_height="match_parent" />
109 <com.android.launcher2.FolderChooser
110 android:id="@+id/folder_chooser"
111 android:layout_width="match_parent"
112 android:layout_height="match_parent" />
113 <com.android.launcher2.ShortcutChooser
114 android:id="@+id/shortcut_chooser"
115 android:layout_width="match_parent"
116 android:layout_height="match_parent" />
117 <TextView
118 android:id="@+id/wallpaperstab"
119 android:layout_width="match_parent"
120 android:layout_height="match_parent"
121 android:text="@string/wallpapers_temp_tab_text" />
122 </FrameLayout>
123 </LinearLayout>
Michael Jurka0e260592010-06-30 17:07:39 -0700124 </TabHost>
Michael Jurkaaf442092010-06-10 17:01:57 -0700125</com.android.launcher2.DragLayer>