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 <!-- Full screen view projects under the status bar and contains the background --> 18 <com.android.launcher3.LauncherRootView 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:launcher="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/launcher" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:fitsSystemWindows="true"> 25 26 <com.android.launcher3.dragndrop.DragLayer 27 android:id="@+id/drag_layer" 28 android:clipChildren="false" 29 android:clipToPadding="false" 30 android:importantForAccessibility="no" 31 android:background="?attr/workspaceStatusBarScrim" 32 android:layout_width="match_parent" 33 android:layout_height="match_parent"> 34 35 <!-- The workspace contains 5 screens of cells --> 36 <!-- DO NOT CHANGE THE ID --> 37 <com.android.launcher3.Workspace 38 android:theme="@style/HomeScreenElementTheme" 39 android:layout_gravity="center" 40 android:id="@+id/workspace" 41 android:layout_width="match_parent" 42 android:layout_height="match_parent" 43 launcher:pageIndicator="@id/page_indicator"> 44 </com.android.launcher3.Workspace> 45 46 <include layout="@layout/gradient_bg" /> 47 48 <!-- DO NOT CHANGE THE ID --> 49 <include layout="@layout/hotseat" 50 android:id="@+id/hotseat" 51 android:layout_width="match_parent" 52 android:layout_height="match_parent" 53 launcher:layout_ignoreInsets="true" /> 54 55 <include 56 android:id="@+id/drop_target_bar" 57 layout="@layout/drop_target_bar_horz" /> 58 59 <include layout="@layout/overview_panel" 60 android:id="@+id/overview_panel" 61 android:visibility="gone" /> 62 63 <!-- Keep these behind the workspace so that they are not visible when 64 we go into AllApps --> 65 <include layout="@layout/page_indicator" 66 android:id="@+id/page_indicator" /> 67 68 <include layout="@layout/widgets_view" 69 android:id="@+id/widgets_view" 70 android:layout_width="match_parent" 71 android:layout_height="match_parent" 72 android:visibility="invisible" /> 73 74 <include layout="@layout/all_apps" 75 android:id="@+id/apps_view" 76 android:layout_width="match_parent" 77 android:layout_height="match_parent" 78 android:visibility="invisible" /> 79 </com.android.launcher3.dragndrop.DragLayer> 80 81 </com.android.launcher3.LauncherRootView> 82