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