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 | |
| 25 | <include layout="@layout/all_apps" /> |
| 26 | |
| 27 | <!-- The workspace contains 5 screens of cells --> |
| 28 | <com.android.launcher2.Workspace |
| 29 | android:id="@+id/workspace" |
| 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="match_parent" |
Winson Chung | aafa03c | 2010-06-11 17:34:16 -0700 | [diff] [blame] | 32 | launcher:canonicalDeviceWidth="8" |
| 33 | launcher:canonicalDeviceHeight="4"> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 34 | |
| 35 | <include android:id="@+id/cell1" layout="@layout/workspace_screen" /> |
| 36 | <include android:id="@+id/cell2" layout="@layout/workspace_screen" /> |
| 37 | <include android:id="@+id/cell3" layout="@layout/workspace_screen" /> |
| 38 | <include android:id="@+id/cell4" layout="@layout/workspace_screen" /> |
| 39 | <include android:id="@+id/cell5" layout="@layout/workspace_screen" /> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 40 | </com.android.launcher2.Workspace> |
| 41 | |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 42 | |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 43 | |
| 44 | <RelativeLayout |
| 45 | android:id="@+id/all_apps_button_cluster" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 46 | android:layout_width="wrap_content" |
| 47 | android:layout_height="wrap_content" |
| 48 | android:layout_gravity="top|right"> |
| 49 | <com.android.launcher2.HandleView |
| 50 | style="@style/HotseatButton" |
| 51 | android:id="@+id/all_apps_button" |
Michael Jurka | 4ab2f86 | 2010-07-12 16:36:06 -0700 | [diff] [blame^] | 52 | android:layout_height="@dimen/button_bar_height" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 53 | android:layout_width="@dimen/button_bar_height" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 54 | |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 55 | android:src="@drawable/all_apps_button" |
| 56 | launcher:direction="horizontal" /> |
| 57 | <ImageView |
| 58 | android:id="@+id/add_button" |
| 59 | android:layout_width="wrap_content" |
| 60 | android:layout_height="wrap_content" |
| 61 | android:layout_toRightOf="@id/all_apps_button" |
| 62 | |
| 63 | android:layout_centerVertical="true" |
| 64 | android:scaleType="center" |
| 65 | android:src="@drawable/add_button" |
| 66 | |
| 67 | android:onClick="onClickAddButton" |
| 68 | android:focusable="true" |
| 69 | android:clickable="true" /> |
| 70 | <com.android.launcher2.DeleteZone |
| 71 | android:id="@+id/delete_zone" |
| 72 | android:layout_width="wrap_content" |
| 73 | android:layout_height="wrap_content" |
| 74 | android:paddingTop="@dimen/delete_zone_padding" |
| 75 | android:layout_toRightOf="@id/all_apps_button" |
| 76 | |
| 77 | android:scaleType="center" |
| 78 | android:src="@drawable/delete_zone_selector" |
| 79 | android:visibility="gone" |
| 80 | launcher:direction="horizontal" /> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 81 | </RelativeLayout> |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 82 | |
| 83 | <TabHost |
| 84 | android:id="@android:id/tabhost" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 85 | android:layout_width="match_parent" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 86 | android:layout_height="200dip" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 87 | android:layout_gravity="bottom" |
Michael Jurka | 0e26059 | 2010-06-30 17:07:39 -0700 | [diff] [blame] | 88 | android:visibility="gone"> |
| 89 | <LinearLayout |
| 90 | android:orientation="vertical" |
| 91 | android:layout_width="match_parent" |
| 92 | android:layout_height="match_parent"> |
| 93 | <TabWidget |
| 94 | android:id="@android:id/tabs" |
| 95 | android:layout_width="match_parent" |
| 96 | android:layout_height="wrap_content" /> |
| 97 | <FrameLayout |
| 98 | android:id="@android:id/tabcontent" |
| 99 | android:background="#ff000000" |
| 100 | android:layout_width="match_parent" |
| 101 | android:layout_height="match_parent"> |
| 102 | <com.android.launcher2.WidgetChooser |
| 103 | android:id="@+id/widget_chooser" |
| 104 | android:layout_width="match_parent" |
| 105 | android:layout_height="match_parent" /> |
| 106 | <com.android.launcher2.FolderChooser |
| 107 | android:id="@+id/folder_chooser" |
| 108 | android:layout_width="match_parent" |
| 109 | android:layout_height="match_parent" /> |
| 110 | <com.android.launcher2.ShortcutChooser |
| 111 | android:id="@+id/shortcut_chooser" |
| 112 | android:layout_width="match_parent" |
| 113 | android:layout_height="match_parent" /> |
| 114 | <TextView |
| 115 | android:id="@+id/wallpaperstab" |
| 116 | android:layout_width="match_parent" |
| 117 | android:layout_height="match_parent" |
| 118 | android:text="@string/wallpapers_temp_tab_text" /> |
| 119 | </FrameLayout> |
| 120 | </LinearLayout> |
| 121 | </TabHost> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 122 | </com.android.launcher2.DragLayer> |