blob: 7b66d7c22f2426e180a2cd3f8a07dbf396a409b1 [file] [log] [blame]
Michael Jurkaaf442092010-06-10 17:01:57 -07001<?xml version="1.0" encoding="utf-8"?>
Patrick Dubroydea9e932010-09-22 15:04:29 -07002<!-- Copyright (C) 2010 The Android Open Source Project
Michael Jurkaaf442092010-06-10 17:01:57 -07003
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
Michael Jurkaaf442092010-06-10 17:01:57 -070025 <!-- The workspace contains 5 screens of cells -->
26 <com.android.launcher2.Workspace
27 android:id="@+id/workspace"
28 android:layout_width="match_parent"
29 android:layout_height="match_parent"
Adam Powell201058d2010-09-09 17:57:26 -070030 android:paddingTop="?android:attr/actionBarSize"
Adam Lesinski6b879f02010-11-04 16:15:23 -070031 android:paddingBottom="10dp"
Michael Jurka54dd7542010-07-30 14:47:52 -070032 launcher:defaultScreen="2"
Adam Cohend22015c2010-07-26 22:02:18 -070033 launcher:cellCountX="8"
Adam Cohen9c4949e2010-10-05 12:27:22 -070034 launcher:cellCountY="7"
Adam Lesinski6b879f02010-11-04 16:15:23 -070035 launcher:pageSpacing="50dp">
Michael Jurkaaf442092010-06-10 17:01:57 -070036
37 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
38 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
39 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
40 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
41 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
Michael Jurkaaf442092010-06-10 17:01:57 -070042 </com.android.launcher2.Workspace>
43
Adam Lesinski6b879f02010-11-04 16:15:23 -070044 <include
45 layout="@layout/all_apps_tabbed"
46 android:id="@+id/all_apps_view"
47 android:layout_width="match_parent"
48 android:layout_height="match_parent"
49 android:layout_gravity="top" />
50
Michael Jurkaaf442092010-06-10 17:01:57 -070051 <RelativeLayout
52 android:id="@+id/all_apps_button_cluster"
Patrick Dubroy6b509c12010-08-23 15:08:16 -070053 android:layout_width="fill_parent"
Adam Powell201058d2010-09-09 17:57:26 -070054 android:layout_height="?android:attr/actionBarSize"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -070055 android:layout_gravity="top">
Patrick Dubroy6b509c12010-08-23 15:08:16 -070056
Amith Yamasani6d7fe502010-11-16 09:05:07 -080057 <LinearLayout android:id="@+id/search_button_cluster"
Patrick Dubroy6b509c12010-08-23 15:08:16 -070058 android:layout_width="wrap_content"
Amith Yamasani6d7fe502010-11-16 09:05:07 -080059 android:layout_height="48dp"
60 android:gravity="bottom"
61 >
62 <LinearLayout
63 android:layout_width="wrap_content"
64 android:layout_height="match_parent"
65 android:layout_marginLeft="16dp"
Amith Yamasani1f878a12010-11-22 14:58:22 -080066 android:background="@drawable/textfield_home_start"
Amith Yamasani6d7fe502010-11-16 09:05:07 -080067 android:orientation="horizontal">
68 <!-- Global search icon -->
69 <ImageView
70 android:id="@+id/search_button"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:layout_gravity="bottom"
74 android:paddingLeft="8dp"
75 android:paddingRight="8dp"
76 android:paddingTop="12dp"
77 android:src="@drawable/search_button_generic"
78 android:background="@drawable/button_bg"
79 android:onClick="onClickSearchButton"
80 android:focusable="true"
81 android:clickable="true"/>
82 </LinearLayout>
Patrick Dubroy6b509c12010-08-23 15:08:16 -070083
Amith Yamasani6d7fe502010-11-16 09:05:07 -080084 <LinearLayout
85 android:layout_width="wrap_content"
86 android:layout_height="match_parent"
Amith Yamasani1f878a12010-11-22 14:58:22 -080087 android:background="@drawable/textfield_home_end"
Amith Yamasani6d7fe502010-11-16 09:05:07 -080088 android:orientation="horizontal">
89 <!-- Voice search icon -->
90 <ImageView
91 android:id="@+id/voice_button"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:layout_gravity="bottom"
95 android:paddingLeft="8dp"
96 android:paddingRight="8dp"
97 android:paddingTop="12dp"
98 android:src="@drawable/ic_voice_search"
99 android:background="@drawable/button_bg"
100 android:onClick="onClickVoiceButton"
101 android:focusable="true"
102 android:clickable="true"/>
103 </LinearLayout>
104 </LinearLayout>
Adam Cohenda4dc5e2010-08-10 22:11:35 -0700105
Michael Jurka0e260592010-06-30 17:07:39 -0700106 <ImageView
Patrick Dubroy67f7f432010-10-04 17:45:43 -0700107 android:id="@+id/configure_button"
108 android:src="@drawable/configure_button"
Michael Jurka0e260592010-06-30 17:07:39 -0700109 android:layout_width="wrap_content"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -0700110 android:layout_height="match_parent"
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700111 android:layout_alignParentRight="true"
Patrick Dubroy6b509c12010-08-23 15:08:16 -0700112 android:layout_marginLeft="@dimen/toolbar_button_spacing"
Winson Chung5aa323f2010-09-08 12:05:15 -0700113 android:layout_marginRight="@dimen/toolbar_button_spacing"
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700114
Patrick Dubroy67f7f432010-10-04 17:45:43 -0700115 android:onClick="onClickConfigureButton"
116 android:focusable="true"
117 android:clickable="true" />
118
119 <TextView
120 android:id="@+id/all_apps_button"
121 android:text="@string/all_apps_button_label"
122 android:background="@drawable/all_apps_button"
123 android:layout_width="wrap_content"
124 android:layout_height="match_parent"
125 android:layout_toLeftOf="@id/configure_button"
126 android:layout_marginLeft="@dimen/toolbar_button_spacing"
127 android:layout_marginRight="@dimen/toolbar_button_spacing"
Winson Chung656d11c2010-11-29 17:15:47 -0800128 android:textColor="#CCFFFFFF"
129 android:textSize="18sp"
130
131 android:shadowColor="#A0000000"
132 android:shadowDx="0.0"
133 android:shadowDy="0.0"
134 android:shadowRadius="2.0"
Patrick Dubroy67f7f432010-10-04 17:45:43 -0700135
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700136 android:onClick="onClickAllAppsButton"
137 android:focusable="true"
138 android:clickable="true" />
139
Michael Jurka4cb37242010-08-09 21:05:32 -0700140 <com.android.launcher2.DeleteZone
141 android:id="@+id/delete_zone"
Patrick Dubroy6b509c12010-08-23 15:08:16 -0700142 android:src="@drawable/delete_zone_selector"
Michael Jurka4cb37242010-08-09 21:05:32 -0700143 android:layout_width="wrap_content"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -0700144 android:layout_height="match_parent"
Adam Lesinski6b879f02010-11-04 16:15:23 -0700145 android:layout_alignRight="@id/all_apps_button"
Michael Jurka4cb37242010-08-09 21:05:32 -0700146
Michael Jurka4cb37242010-08-09 21:05:32 -0700147 android:visibility="gone"
148 launcher:direction="horizontal" />
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700149
150 <com.android.launcher2.ApplicationInfoDropTarget
151 android:id="@+id/info_button"
152 android:src="@drawable/info_button"
Michael Jurka2c3af5f2010-08-03 13:53:20 -0700153 android:layout_width="wrap_content"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -0700154 android:layout_height="match_parent"
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700155 android:layout_alignLeft="@id/configure_button"
Michael Jurka0e260592010-06-30 17:07:39 -0700156
Patrick Dubroy6b509c12010-08-23 15:08:16 -0700157 android:visibility="gone"
Michael Jurka0e260592010-06-30 17:07:39 -0700158 android:focusable="true"
159 android:clickable="true" />
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700160
Michael Jurkaaf442092010-06-10 17:01:57 -0700161 </RelativeLayout>
Michael Jurka0e260592010-06-30 17:07:39 -0700162
163 <TabHost
164 android:id="@android:id/tabhost"
Michael Jurkaaf442092010-06-10 17:01:57 -0700165 android:layout_width="match_parent"
Winson Chung49767ae2010-11-29 14:48:30 -0800166 android:layout_height="480dp"
Patrick Dubroy3ec8bdd2010-08-06 16:01:33 -0700167 android:layout_gravity="bottom">
Patrick Dubroy558654c2010-07-23 16:48:11 -0700168 <LinearLayout
169 android:orientation="vertical"
170 android:layout_width="match_parent"
171 android:layout_height="match_parent">
172 <TabWidget
173 android:id="@android:id/tabs"
Winson Chung7da10252010-10-28 16:07:04 -0700174 android:layout_width="952dp"
Winson Chung80baf5a2010-08-09 16:03:15 -0700175 android:layout_height="wrap_content"
176 android:layout_gravity="center_horizontal"
Winson Chung7da10252010-10-28 16:07:04 -0700177 android:background="@drawable/tab_unselected_holo"
178 android:tabStripEnabled="false" />
Patrick Dubroy558654c2010-07-23 16:48:11 -0700179 <FrameLayout
180 android:id="@android:id/tabcontent"
Patrick Dubroy558654c2010-07-23 16:48:11 -0700181 android:layout_width="match_parent"
182 android:layout_height="match_parent">
Patrick Dubroy558654c2010-07-23 16:48:11 -0700183 </FrameLayout>
184 </LinearLayout>
Michael Jurka0e260592010-06-30 17:07:39 -0700185 </TabHost>
Michael Jurkaaf442092010-06-10 17:01:57 -0700186</com.android.launcher2.DragLayer>