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