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 <!-- The workspace contains 5 screens of cells --> 26 <com.android.launcher2.Workspace 27 android:id="@+id/workspace" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:paddingLeft="@dimen/qsb_bar_height" 31 android:paddingRight="@dimen/button_bar_height" 32 launcher:defaultScreen="2" 33 launcher:cellCountX="4" 34 launcher:cellCountY="4" 35 launcher:pageSpacing="@dimen/workspace_page_spacing" 36 launcher:scrollIndicatorPaddingLeft="@dimen/qsb_bar_height" 37 launcher:scrollIndicatorPaddingRight="@dimen/button_bar_height"> 38 39 <include android:id="@+id/cell1" layout="@layout/workspace_screen" /> 40 <include android:id="@+id/cell2" layout="@layout/workspace_screen" /> 41 <include android:id="@+id/cell3" layout="@layout/workspace_screen" /> 42 <include android:id="@+id/cell4" layout="@layout/workspace_screen" /> 43 <include android:id="@+id/cell5" layout="@layout/workspace_screen" /> 44 </com.android.launcher2.Workspace> 45 46 <include 47 android:id="@+id/qsb_divider" 48 layout="@layout/workspace_divider" 49 android:layout_width="wrap_content" 50 android:layout_height="match_parent" 51 android:layout_marginLeft="@dimen/qsb_bar_height" 52 android:layout_gravity="left" /> 53 <include 54 android:id="@+id/dock_divider" 55 layout="@layout/workspace_divider" 56 android:layout_width="wrap_content" 57 android:layout_height="match_parent" 58 android:layout_marginRight="@dimen/button_bar_height" 59 android:layout_gravity="right" /> 60 <include 61 android:id="@+id/paged_view_indicator" 62 layout="@layout/scroll_indicator" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:layout_gravity="bottom" /> 66 67 <include layout="@layout/hotseat" 68 android:id="@+id/hotseat" 69 android:layout_width="@dimen/button_bar_height_plus_padding" 70 android:layout_height="match_parent" 71 android:layout_gravity="right" /> 72 <include 73 android:id="@+id/qsb_bar" 74 layout="@layout/qsb_bar" /> 75 76 <include layout="@layout/apps_customize_pane" 77 android:id="@+id/apps_customize_pane" 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" 80 android:visibility="invisible" /> 81 82 <include layout="@layout/workspace_cling" 83 android:id="@+id/workspace_cling" 84 android:layout_width="match_parent" 85 android:layout_height="match_parent" 86 android:visibility="gone" /> 87 88 <include layout="@layout/folder_cling" 89 android:id="@+id/folder_cling" 90 android:layout_width="match_parent" 91 android:layout_height="match_parent" 92 android:visibility="gone" /> 93 </com.android.launcher2.DragLayer> 94