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" |
| 29 | android:layout_height="500dip" |
| 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" |
Winson Chung | aafa03c | 2010-06-11 17:34:16 -0700 | [diff] [blame] | 38 | launcher:canonicalDeviceWidth="8" |
| 39 | launcher:canonicalDeviceHeight="4"> |
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 | 2c3af5f | 2010-08-03 13:53:20 -0700 | [diff] [blame^] | 48 | <ImageView |
| 49 | android:id="@+id/search_button" |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:src="@drawable/search_button" |
| 53 | |
| 54 | android:onClick="onClickSearchButton" |
| 55 | android:focusable="true" |
| 56 | android:clickable="true" |
| 57 | android:layout_gravity="top|left"/> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 58 | <RelativeLayout |
| 59 | android:id="@+id/all_apps_button_cluster" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:layout_gravity="top|right"> |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 63 | <ImageView |
Michael Jurka | 2c3af5f | 2010-08-03 13:53:20 -0700 | [diff] [blame^] | 64 | android:id="@+id/configure_button" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 65 | android:layout_width="wrap_content" |
| 66 | android:layout_height="wrap_content" |
Michael Jurka | 2c3af5f | 2010-08-03 13:53:20 -0700 | [diff] [blame^] | 67 | android:src="@drawable/configure_button" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 68 | |
Michael Jurka | 2c3af5f | 2010-08-03 13:53:20 -0700 | [diff] [blame^] | 69 | android:onClick="onClickConfigureButton" |
| 70 | android:focusable="true" |
| 71 | android:clickable="true" /> |
| 72 | <ImageView |
| 73 | android:id="@+id/all_apps_button" |
| 74 | android:layout_width="wrap_content" |
| 75 | android:layout_height="wrap_content" |
| 76 | android:layout_toRightOf="@id/configure_button" |
| 77 | android:src="@drawable/all_apps_button" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 78 | |
Michael Jurka | 2c3af5f | 2010-08-03 13:53:20 -0700 | [diff] [blame^] | 79 | android:onClick="onClickAllAppsButton" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 80 | android:focusable="true" |
| 81 | android:clickable="true" /> |
| 82 | <com.android.launcher2.DeleteZone |
| 83 | android:id="@+id/delete_zone" |
| 84 | android:layout_width="wrap_content" |
| 85 | android:layout_height="wrap_content" |
| 86 | android:paddingTop="@dimen/delete_zone_padding" |
Michael Jurka | 2c3af5f | 2010-08-03 13:53:20 -0700 | [diff] [blame^] | 87 | android:layout_toRightOf="@id/configure_button" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 88 | |
| 89 | android:scaleType="center" |
| 90 | android:src="@drawable/delete_zone_selector" |
| 91 | android:visibility="gone" |
| 92 | launcher:direction="horizontal" /> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 93 | </RelativeLayout> |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 94 | |
| 95 | <TabHost |
| 96 | android:id="@android:id/tabhost" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 97 | android:layout_width="match_parent" |
Michael Jurka | dee0589 | 2010-07-27 10:01:56 -0700 | [diff] [blame] | 98 | android:layout_height="500dip" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 99 | android:layout_gravity="bottom" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 100 | android:visibility="gone"> |
Patrick Dubroy | 558654c | 2010-07-23 16:48:11 -0700 | [diff] [blame] | 101 | <LinearLayout |
| 102 | android:orientation="vertical" |
| 103 | android:layout_width="match_parent" |
| 104 | android:layout_height="match_parent"> |
| 105 | <TabWidget |
| 106 | android:id="@android:id/tabs" |
| 107 | android:layout_width="match_parent" |
| 108 | android:layout_height="wrap_content" /> |
| 109 | <FrameLayout |
| 110 | android:id="@android:id/tabcontent" |
| 111 | android:background="#ff000000" |
| 112 | android:layout_width="match_parent" |
| 113 | android:layout_height="match_parent"> |
| 114 | <com.android.launcher2.WidgetChooser |
| 115 | android:id="@+id/widget_chooser" |
| 116 | android:layout_width="match_parent" |
| 117 | android:layout_height="match_parent" /> |
| 118 | <com.android.launcher2.FolderChooser |
| 119 | android:id="@+id/folder_chooser" |
| 120 | android:layout_width="match_parent" |
| 121 | android:layout_height="match_parent" /> |
| 122 | <com.android.launcher2.ShortcutChooser |
| 123 | android:id="@+id/shortcut_chooser" |
| 124 | android:layout_width="match_parent" |
| 125 | android:layout_height="match_parent" /> |
| 126 | <TextView |
| 127 | android:id="@+id/wallpaperstab" |
| 128 | android:layout_width="match_parent" |
| 129 | android:layout_height="match_parent" |
| 130 | android:text="@string/wallpapers_temp_tab_text" /> |
| 131 | </FrameLayout> |
| 132 | </LinearLayout> |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 133 | </TabHost> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 134 | </com.android.launcher2.DragLayer> |