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 | |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 25 | <include |
| 26 | layout="@layout/all_apps_tabbed" |
| 27 | android:id="@+id/all_apps_view" |
| 28 | android:layout_width="match_parent" |
Winson Chung | df4b83d | 2010-10-20 17:49:27 -0700 | [diff] [blame] | 29 | android:layout_height="600dip" |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 30 | android:layout_gravity="top"/> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 31 | |
| 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" |
Adam Powell | 201058d | 2010-09-09 17:57:26 -0700 | [diff] [blame] | 37 | android:paddingTop="?android:attr/actionBarSize" |
Michael Jurka | 54dd754 | 2010-07-30 14:47:52 -0700 | [diff] [blame] | 38 | launcher:defaultScreen="2" |
Adam Cohen | d22015c | 2010-07-26 22:02:18 -0700 | [diff] [blame] | 39 | launcher:cellCountX="8" |
Adam Cohen | 9c4949e | 2010-10-05 12:27:22 -0700 | [diff] [blame] | 40 | launcher:cellCountY="7" |
Winson Chung | ece7f5b | 2010-10-22 14:54:12 -0700 | [diff] [blame] | 41 | launcher:pageSpacing="32dip"> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 42 | |
| 43 | <include android:id="@+id/cell1" layout="@layout/workspace_screen" /> |
| 44 | <include android:id="@+id/cell2" layout="@layout/workspace_screen" /> |
| 45 | <include android:id="@+id/cell3" layout="@layout/workspace_screen" /> |
| 46 | <include android:id="@+id/cell4" layout="@layout/workspace_screen" /> |
| 47 | <include android:id="@+id/cell5" layout="@layout/workspace_screen" /> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 48 | </com.android.launcher2.Workspace> |
| 49 | |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 50 | <RelativeLayout |
| 51 | android:id="@+id/all_apps_button_cluster" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 52 | android:layout_width="fill_parent" |
Adam Powell | 201058d | 2010-09-09 17:57:26 -0700 | [diff] [blame] | 53 | android:layout_height="?android:attr/actionBarSize" |
Patrick Dubroy | 9f7aec8 | 2010-09-06 11:03:37 -0700 | [diff] [blame] | 54 | android:layout_gravity="top"> |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 55 | |
| 56 | <ImageView |
| 57 | android:id="@+id/search_button" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 58 | android:layout_width="wrap_content" |
Patrick Dubroy | 9f7aec8 | 2010-09-06 11:03:37 -0700 | [diff] [blame] | 59 | android:layout_height="match_parent" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 60 | android:layout_gravity="left" |
Winson Chung | 5aa323f | 2010-09-08 12:05:15 -0700 | [diff] [blame] | 61 | android:layout_marginLeft="@dimen/toolbar_button_spacing" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 62 | |
| 63 | android:onClick="onClickSearchButton" |
| 64 | android:focusable="true" |
| 65 | android:clickable="true"/> |
Adam Cohen | da4dc5e | 2010-08-10 22:11:35 -0700 | [diff] [blame] | 66 | |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 67 | <ImageView |
Patrick Dubroy | 67f7f43 | 2010-10-04 17:45:43 -0700 | [diff] [blame] | 68 | android:id="@+id/configure_button" |
| 69 | android:src="@drawable/configure_button" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 70 | android:layout_width="wrap_content" |
Patrick Dubroy | 9f7aec8 | 2010-09-06 11:03:37 -0700 | [diff] [blame] | 71 | android:layout_height="match_parent" |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 72 | android:layout_alignParentRight="true" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 73 | android:layout_marginLeft="@dimen/toolbar_button_spacing" |
Winson Chung | 5aa323f | 2010-09-08 12:05:15 -0700 | [diff] [blame] | 74 | android:layout_marginRight="@dimen/toolbar_button_spacing" |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 75 | |
Patrick Dubroy | 67f7f43 | 2010-10-04 17:45:43 -0700 | [diff] [blame] | 76 | android:onClick="onClickConfigureButton" |
| 77 | android:focusable="true" |
| 78 | android:clickable="true" /> |
| 79 | |
| 80 | <TextView |
| 81 | android:id="@+id/all_apps_button" |
| 82 | android:text="@string/all_apps_button_label" |
| 83 | android:background="@drawable/all_apps_button" |
| 84 | android:layout_width="wrap_content" |
| 85 | android:layout_height="match_parent" |
| 86 | android:layout_toLeftOf="@id/configure_button" |
| 87 | android:layout_marginLeft="@dimen/toolbar_button_spacing" |
| 88 | android:layout_marginRight="@dimen/toolbar_button_spacing" |
| 89 | android:textSize="18dip" |
| 90 | |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 91 | android:onClick="onClickAllAppsButton" |
| 92 | android:focusable="true" |
| 93 | android:clickable="true" /> |
| 94 | |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 95 | <!-- The button to bring up the installed app market. |
| 96 | The icon for this button will be dynamically set. --> |
| 97 | <ImageView |
| 98 | android:id="@+id/market_button" |
| 99 | android:layout_width="wrap_content" |
Patrick Dubroy | 9f7aec8 | 2010-09-06 11:03:37 -0700 | [diff] [blame] | 100 | android:layout_height="match_parent" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 101 | android:layout_alignLeft="@id/all_apps_button" |
| 102 | |
Patrick Dubroy | ceae05d | 2010-08-30 10:40:53 -0700 | [diff] [blame] | 103 | android:onClick="onClickAppMarketButton" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 104 | android:focusable="false" |
| 105 | android:clickable="false" |
| 106 | android:visibility="gone"/> |
| 107 | |
Michael Jurka | 4cb3724 | 2010-08-09 21:05:32 -0700 | [diff] [blame] | 108 | <com.android.launcher2.DeleteZone |
| 109 | android:id="@+id/delete_zone" |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 110 | android:src="@drawable/delete_zone_selector" |
Michael Jurka | 4cb3724 | 2010-08-09 21:05:32 -0700 | [diff] [blame] | 111 | android:layout_width="wrap_content" |
Patrick Dubroy | 9f7aec8 | 2010-09-06 11:03:37 -0700 | [diff] [blame] | 112 | android:layout_height="match_parent" |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 113 | android:layout_alignLeft="@id/all_apps_button" |
Michael Jurka | 4cb3724 | 2010-08-09 21:05:32 -0700 | [diff] [blame] | 114 | |
Michael Jurka | 4cb3724 | 2010-08-09 21:05:32 -0700 | [diff] [blame] | 115 | android:visibility="gone" |
| 116 | launcher:direction="horizontal" /> |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 117 | |
| 118 | <com.android.launcher2.ApplicationInfoDropTarget |
| 119 | android:id="@+id/info_button" |
| 120 | android:src="@drawable/info_button" |
Michael Jurka | 2c3af5f | 2010-08-03 13:53:20 -0700 | [diff] [blame] | 121 | android:layout_width="wrap_content" |
Patrick Dubroy | 9f7aec8 | 2010-09-06 11:03:37 -0700 | [diff] [blame] | 122 | android:layout_height="match_parent" |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 123 | android:layout_alignLeft="@id/configure_button" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 124 | |
Patrick Dubroy | 6b509c1 | 2010-08-23 15:08:16 -0700 | [diff] [blame] | 125 | android:visibility="gone" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 126 | android:focusable="true" |
| 127 | android:clickable="true" /> |
Patrick Dubroy | 4ed6278 | 2010-08-17 15:11:18 -0700 | [diff] [blame] | 128 | |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 129 | </RelativeLayout> |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 130 | |
| 131 | <TabHost |
| 132 | android:id="@android:id/tabhost" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 133 | android:layout_width="match_parent" |
Winson Chung | e3193b9 | 2010-09-10 11:44:42 -0700 | [diff] [blame] | 134 | android:layout_height="500dip" |
Patrick Dubroy | 3ec8bdd | 2010-08-06 16:01:33 -0700 | [diff] [blame] | 135 | android:layout_gravity="bottom"> |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 136 | <LinearLayout |
| 137 | android:orientation="vertical" |
Winson Chung | 80baf5a | 2010-08-09 16:03:15 -0700 | [diff] [blame] | 138 | android:background="#40000000" |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 139 | android:layout_width="match_parent" |
| 140 | android:layout_height="match_parent"> |
| 141 | <TabWidget |
| 142 | android:id="@android:id/tabs" |
Winson Chung | 80baf5a | 2010-08-09 16:03:15 -0700 | [diff] [blame] | 143 | android:layout_width="wrap_content" |
| 144 | android:layout_height="wrap_content" |
| 145 | android:layout_gravity="center_horizontal" |
| 146 | android:tabStripEnabled="false" |
| 147 | android:paddingBottom="10dp" /> |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 148 | <FrameLayout |
| 149 | android:id="@android:id/tabcontent" |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 150 | android:layout_width="match_parent" |
| 151 | android:layout_height="match_parent"> |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 152 | </FrameLayout> |
| 153 | </LinearLayout> |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 154 | </TabHost> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 155 | </com.android.launcher2.DragLayer> |