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:background="@drawable/workspace_bg" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent"> 25 26 <!-- The workspace contains 5 screens of cells --> 27 <com.android.launcher2.Workspace 28 android:id="@+id/workspace" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 android:paddingLeft="@dimen/workspace_left_padding" 32 android:paddingRight="@dimen/workspace_right_padding" 33 android:paddingTop="@dimen/workspace_top_padding" 34 android:paddingBottom="@dimen/workspace_bottom_padding" 35 launcher:defaultScreen="2" 36 launcher:cellCountX="@integer/cell_count_x" 37 launcher:cellCountY="@integer/cell_count_y" 38 launcher:pageSpacing="@dimen/workspace_page_spacing" 39 launcher:scrollIndicatorPaddingLeft="@dimen/qsb_bar_height" 40 launcher:scrollIndicatorPaddingRight="@dimen/button_bar_height"> 41 42 <include android:id="@+id/cell1" layout="@layout/workspace_screen" /> 43 <include android:id="@+id/cell2" layout="@layout/workspace_screen" /> 44 <include android:id="@+id/cell3" layout="@layout/workspace_screen" /> 45 <include android:id="@+id/cell4" layout="@layout/workspace_screen" /> 46 <include android:id="@+id/cell5" layout="@layout/workspace_screen" /> 47 </com.android.launcher2.Workspace> 48 49 <include 50 android:id="@+id/qsb_divider" 51 layout="@layout/workspace_divider" 52 android:layout_width="wrap_content" 53 android:layout_height="match_parent" 54 android:layout_marginLeft="@dimen/qsb_bar_height" 55 android:layout_gravity="left" /> 56 <include 57 android:id="@+id/dock_divider" 58 layout="@layout/workspace_divider" 59 android:layout_width="wrap_content" 60 android:layout_height="match_parent" 61 android:layout_marginRight="@dimen/button_bar_height" 62 android:layout_gravity="right" /> 63 <include 64 android:id="@+id/paged_view_indicator" 65 layout="@layout/scroll_indicator" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:layout_gravity="bottom" /> 69 70 <include layout="@layout/hotseat" 71 android:id="@+id/hotseat" 72 android:layout_width="@dimen/button_bar_height_plus_padding" 73 android:layout_height="match_parent" 74 android:layout_gravity="right" /> 75 <include 76 android:id="@+id/qsb_bar" 77 layout="@layout/qsb_bar" /> 78 79 <com.android.launcher2.DrawableStateProxyView 80 android:id="@+id/voice_button_proxy" 81 android:layout_width="@dimen/qsb_bar_height" 82 android:layout_height="@dimen/app_icon_size" 83 android:layout_gravity="bottom|left" 84 android:clickable="true" 85 android:onClick="onClickVoiceButton" 86 android:importantForAccessibility="no" 87 launcher:sourceViewId="@+id/voice_button" /> 88 89 <include layout="@layout/apps_customize_pane" 90 android:id="@+id/apps_customize_pane" 91 android:layout_width="match_parent" 92 android:layout_height="match_parent" 93 android:visibility="invisible" /> 94 95 <include layout="@layout/workspace_cling" 96 android:id="@+id/workspace_cling" 97 android:layout_width="match_parent" 98 android:layout_height="match_parent" 99 android:visibility="gone" /> 100 101 <include layout="@layout/folder_cling" 102 android:id="@+id/folder_cling" 103 android:layout_width="match_parent" 104 android:layout_height="match_parent" 105 android:visibility="gone" /> 106 </com.android.launcher2.DragLayer> 107