The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [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.launcher.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="fill_parent" |
| 23 | android:layout_height="fill_parent"> |
| 24 | |
| 25 | <!-- The workspace contains 3 screens of cells --> |
| 26 | <com.android.launcher.Workspace |
| 27 | android:id="@+id/workspace" |
| 28 | android:layout_width="fill_parent" |
| 29 | android:layout_height="fill_parent" |
| 30 | |
| 31 | launcher:defaultScreen="1"> |
| 32 | |
| 33 | <include android:id="@+id/cell1" layout="@layout/workspace_screen" /> |
| 34 | <include android:id="@+id/cell2" layout="@layout/workspace_screen" /> |
| 35 | <include android:id="@+id/cell3" layout="@layout/workspace_screen" /> |
| 36 | |
| 37 | </com.android.launcher.Workspace> |
| 38 | |
| 39 | <SlidingDrawer |
| 40 | android:id="@+id/drawer" |
| 41 | android:layout_width="fill_parent" |
| 42 | android:layout_height="fill_parent" |
| 43 | |
| 44 | android:topOffset="5dip" |
| 45 | android:bottomOffset="7dip" |
| 46 | android:handle="@+id/all_apps" |
| 47 | android:content="@+id/content"> |
| 48 | |
| 49 | <com.android.launcher.HandleView |
| 50 | android:id="@id/all_apps" |
| 51 | android:layout_width="fill_parent" |
| 52 | android:layout_height="56dip" |
| 53 | |
| 54 | android:background="@drawable/handle" |
| 55 | |
| 56 | android:focusable="true" |
| 57 | android:clickable="true" |
| 58 | |
| 59 | android:scaleType="center" |
| 60 | android:src="@drawable/handle_icon" |
| 61 | |
| 62 | launcher:direction="horizontal" /> |
| 63 | |
| 64 | <com.android.launcher.AllAppsGridView |
| 65 | android:id="@id/content" |
| 66 | android:layout_width="fill_parent" |
| 67 | android:layout_height="fill_parent" |
| 68 | |
| 69 | launcher:texture="@drawable/texture_brushed_steel" |
| 70 | |
| 71 | android:scrollbarStyle="outsideInset" |
| 72 | android:drawSelectorOnTop="false" |
| 73 | android:listSelector="@drawable/grid_selector" |
| 74 | |
| 75 | android:nextFocusLeft="@id/content" |
| 76 | android:nextFocusDown="@id/content" |
| 77 | android:nextFocusUp="@id/all_apps" |
| 78 | android:nextFocusRight="@id/content" |
| 79 | |
| 80 | android:verticalSpacing="10dip" |
| 81 | android:numColumns="4" /> |
| 82 | |
| 83 | </SlidingDrawer> |
| 84 | |
| 85 | <com.android.launcher.DeleteZone |
| 86 | android:id="@+id/delete_zone" |
| 87 | android:layout_width="wrap_content" |
| 88 | android:layout_height="49dip" |
| 89 | |
| 90 | android:scaleType="center" |
| 91 | android:src="@drawable/ic_delete" |
| 92 | android:background="@drawable/delete_zone_selector" |
| 93 | |
| 94 | android:layout_gravity="bottom|center_horizontal" |
| 95 | android:visibility="invisible" |
| 96 | |
| 97 | launcher:direction="horizontal" /> |
| 98 | |
| 99 | </com.android.launcher.DragLayer> |