Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Patrick Dubroy | dea9e93 | 2010-09-22 15:04:29 -0700 | [diff] [blame] | 2 | <!-- Copyright (C) 2010 The Android Open Source Project |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 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 | |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 25 | <!-- 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 Powell | 201058d | 2010-09-09 17:57:26 -0700 | [diff] [blame] | 30 | android:paddingTop="?android:attr/actionBarSize" |
Adam Lesinski | 6b879f0 | 2010-11-04 16:15:23 -0700 | [diff] [blame] | 31 | android:paddingBottom="10dp" |
Michael Jurka | 54dd754 | 2010-07-30 14:47:52 -0700 | [diff] [blame] | 32 | launcher:defaultScreen="2" |
Adam Cohen | d22015c | 2010-07-26 22:02:18 -0700 | [diff] [blame] | 33 | launcher:cellCountX="8" |
Adam Cohen | 9c4949e | 2010-10-05 12:27:22 -0700 | [diff] [blame] | 34 | launcher:cellCountY="7" |
Adam Lesinski | 6b879f0 | 2010-11-04 16:15:23 -0700 | [diff] [blame] | 35 | launcher:pageSpacing="50dp"> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 36 | |
| 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 Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 42 | </com.android.launcher2.Workspace> |
| 43 | |
Adam Lesinski | 6b879f0 | 2010-11-04 16:15:23 -0700 | [diff] [blame] | 44 | <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 Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 51 | <RelativeLayout |
| 52 | android:id="@+id/all_apps_button_cluster" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 53 | android:layout_width="fill_parent" |
Adam Powell | 201058d | 2010-09-09 17:57:26 -0700 | [diff] [blame] | 54 | android:layout_height="?android:attr/actionBarSize" |
Patrick Dubroy | 9f7aec8 | 2010-09-06 11:03:37 -0700 | [diff] [blame] | 55 | android:layout_gravity="top"> |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 56 | |
Amith Yamasani | 6d7fe50 | 2010-11-16 09:05:07 -0800 | [diff] [blame] | 57 | <LinearLayout android:id="@+id/search_button_cluster" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 58 | android:layout_width="wrap_content" |
Amith Yamasani | 6d7fe50 | 2010-11-16 09:05:07 -0800 | [diff] [blame] | 59 | 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 Yamasani | 1f878a1 | 2010-11-22 14:58:22 -0800 | [diff] [blame] | 66 | android:background="@drawable/textfield_home_start" |
Amith Yamasani | 6d7fe50 | 2010-11-16 09:05:07 -0800 | [diff] [blame] | 67 | 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 Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 83 | |
Amith Yamasani | 6d7fe50 | 2010-11-16 09:05:07 -0800 | [diff] [blame] | 84 | <LinearLayout |
| 85 | android:layout_width="wrap_content" |
| 86 | android:layout_height="match_parent" |
Amith Yamasani | 1f878a1 | 2010-11-22 14:58:22 -0800 | [diff] [blame] | 87 | android:background="@drawable/textfield_home_end" |
Amith Yamasani | 6d7fe50 | 2010-11-16 09:05:07 -0800 | [diff] [blame] | 88 | 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 Cohen | da4dc5e | 2010-08-10 22:11:35 -0700 | [diff] [blame] | 105 | |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 106 | <ImageView |
Patrick Dubroy | 67f7f43 | 2010-10-04 17:45:43 -0700 | [diff] [blame] | 107 | android:id="@+id/configure_button" |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 108 | android:src="@drawable/ic_home_add_holo_dark" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 109 | android:layout_width="wrap_content" |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 110 | android:layout_height="wrap_content" |
| 111 | android:layout_alignParentTop="true" |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 112 | android:layout_alignParentRight="true" |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 113 | android:paddingLeft="@dimen/toolbar_button_horizontal_padding" |
| 114 | android:paddingRight="@dimen/toolbar_button_horizontal_padding" |
| 115 | android:paddingTop="@dimen/toolbar_button_vertical_padding" |
| 116 | android:paddingBottom="@dimen/toolbar_button_vertical_padding" |
| 117 | android:background="@drawable/button_bg" |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 118 | |
Patrick Dubroy | 67f7f43 | 2010-10-04 17:45:43 -0700 | [diff] [blame] | 119 | android:onClick="onClickConfigureButton" |
| 120 | android:focusable="true" |
| 121 | android:clickable="true" /> |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 122 | <ImageView |
| 123 | android:id="@+id/divider" |
| 124 | android:src="@drawable/divider_launcher_holo" |
| 125 | android:layout_width="wrap_content" |
| 126 | android:layout_height="@dimen/toolbar_divider_height" |
| 127 | android:layout_toLeftOf="@id/configure_button" |
| 128 | android:paddingTop="@dimen/toolbar_button_vertical_padding" |
| 129 | android:paddingBottom="@dimen/toolbar_button_vertical_padding" |
Patrick Dubroy | 67f7f43 | 2010-10-04 17:45:43 -0700 | [diff] [blame] | 130 | |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 131 | android:onClick="onClickAllAppsButton" |
| 132 | android:focusable="true" |
| 133 | android:clickable="true" /> |
Patrick Dubroy | 67f7f43 | 2010-10-04 17:45:43 -0700 | [diff] [blame] | 134 | <TextView |
| 135 | android:id="@+id/all_apps_button" |
| 136 | android:text="@string/all_apps_button_label" |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 137 | android:drawablePadding="@dimen/all_apps_drawable_padding" |
| 138 | android:drawableLeft="@drawable/ic_home_all_apps_holo_dark" |
Patrick Dubroy | 67f7f43 | 2010-10-04 17:45:43 -0700 | [diff] [blame] | 139 | android:layout_width="wrap_content" |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 140 | android:layout_height="wrap_content" |
| 141 | android:layout_toLeftOf="@id/divider" |
| 142 | android:paddingLeft="@dimen/toolbar_button_horizontal_padding" |
| 143 | android:paddingRight="@dimen/toolbar_button_horizontal_padding" |
| 144 | android:paddingTop="@dimen/toolbar_button_vertical_padding" |
| 145 | android:paddingBottom="@dimen/toolbar_button_vertical_padding" |
| 146 | android:background="@drawable/button_bg" |
| 147 | |
| 148 | android:gravity="center_horizontal|center_vertical" |
Winson Chung | 656d11c | 2010-11-29 17:15:47 -0800 | [diff] [blame] | 149 | android:textColor="#CCFFFFFF" |
| 150 | android:textSize="18sp" |
| 151 | |
Winson Chung | b7f2a8f | 2010-12-21 12:24:09 -0800 | [diff] [blame^] | 152 | android:shadowColor="#DA000000" |
Winson Chung | 656d11c | 2010-11-29 17:15:47 -0800 | [diff] [blame] | 153 | android:shadowDx="0.0" |
| 154 | android:shadowDy="0.0" |
Winson Chung | b7f2a8f | 2010-12-21 12:24:09 -0800 | [diff] [blame^] | 155 | android:shadowRadius="2.5" |
Patrick Dubroy | 67f7f43 | 2010-10-04 17:45:43 -0700 | [diff] [blame] | 156 | |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 157 | android:onClick="onClickAllAppsButton" |
| 158 | android:focusable="true" |
| 159 | android:clickable="true" /> |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 160 | <ImageView |
| 161 | android:id="@+id/divider_during_drag" |
| 162 | android:src="@drawable/divider_launcher_holo" |
| 163 | android:layout_width="wrap_content" |
| 164 | android:layout_height="@dimen/toolbar_divider_height" |
| 165 | android:layout_toLeftOf="@id/configure_button" |
| 166 | android:paddingTop="@dimen/toolbar_button_vertical_padding" |
| 167 | android:paddingBottom="@dimen/toolbar_button_vertical_padding" |
| 168 | android:visibility="gone"/> |
Michael Jurka | 4cb3724 | 2010-08-09 21:05:32 -0700 | [diff] [blame] | 169 | <com.android.launcher2.DeleteZone |
| 170 | android:id="@+id/delete_zone" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 171 | android:src="@drawable/delete_zone_selector" |
Michael Jurka | 4cb3724 | 2010-08-09 21:05:32 -0700 | [diff] [blame] | 172 | android:layout_width="wrap_content" |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 173 | android:layout_height="wrap_content" |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 174 | android:layout_alignLeft="@id/configure_button" |
Michael Jurka | 800242b | 2010-12-16 11:39:26 -0800 | [diff] [blame] | 175 | android:paddingLeft="@dimen/toolbar_button_horizontal_padding" |
| 176 | android:paddingRight="@dimen/toolbar_button_horizontal_padding" |
| 177 | android:paddingTop="@dimen/toolbar_button_vertical_padding" |
| 178 | android:paddingBottom="@dimen/toolbar_button_vertical_padding" |
| 179 | android:background="@drawable/button_bg" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 180 | |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 181 | android:visibility="gone" |
Michael Jurka | b8e1447 | 2010-12-20 16:06:10 -0800 | [diff] [blame] | 182 | launcher:direction="horizontal" /> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 183 | </RelativeLayout> |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 184 | |
| 185 | <TabHost |
Winson Chung | 8812703 | 2010-12-13 12:11:33 -0800 | [diff] [blame] | 186 | android:id="@+id/customization_drawer" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 187 | android:layout_width="match_parent" |
Winson Chung | 49767ae | 2010-11-29 14:48:30 -0800 | [diff] [blame] | 188 | android:layout_height="480dp" |
Patrick Dubroy | 3ec8bdd | 2010-08-06 16:01:33 -0700 | [diff] [blame] | 189 | android:layout_gravity="bottom"> |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 190 | <LinearLayout |
| 191 | android:orientation="vertical" |
| 192 | android:layout_width="match_parent" |
| 193 | android:layout_height="match_parent"> |
| 194 | <TabWidget |
| 195 | android:id="@android:id/tabs" |
Winson Chung | 7da1025 | 2010-10-28 16:07:04 -0700 | [diff] [blame] | 196 | android:layout_width="952dp" |
Winson Chung | 80baf5a | 2010-08-09 16:03:15 -0700 | [diff] [blame] | 197 | android:layout_height="wrap_content" |
| 198 | android:layout_gravity="center_horizontal" |
Winson Chung | 7da1025 | 2010-10-28 16:07:04 -0700 | [diff] [blame] | 199 | android:background="@drawable/tab_unselected_holo" |
| 200 | android:tabStripEnabled="false" /> |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 201 | <FrameLayout |
| 202 | android:id="@android:id/tabcontent" |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 203 | android:layout_width="match_parent" |
| 204 | android:layout_height="match_parent"> |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 205 | </FrameLayout> |
| 206 | </LinearLayout> |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 207 | </TabHost> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 208 | </com.android.launcher2.DragLayer> |