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 <FrameLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3" 21 22 android:id="@+id/launcher" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:background="@drawable/workspace_bg"> 26 27 <com.android.launcher3.DragLayer 28 android:id="@+id/drag_layer" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent"> 31 32 <!-- The workspace contains 5 screens of cells --> 33 <com.android.launcher3.Workspace 34 android:id="@+id/workspace" 35 android:layout_width="match_parent" 36 android:layout_height="match_parent" 37 launcher:defaultScreen="@integer/config_workspaceDefaultScreen" 38 launcher:pageIndicator="@+id/page_indicator"> 39 </com.android.launcher3.Workspace> 40 41 <include layout="@layout/hotseat" 42 android:id="@+id/hotseat" 43 android:layout_width="match_parent" 44 android:layout_height="match_parent" /> 45 46 <include layout="@layout/overview_panel" 47 android:id="@+id/overview_panel" 48 android:visibility="gone" /> 49 50 <!-- Keep these behind the workspace so that they are not visible when 51 we go into AllApps --> 52 <include 53 android:id="@+id/page_indicator" 54 layout="@layout/page_indicator" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_gravity="center_horizontal" /> 58 59 <include 60 android:id="@+id/search_drop_target_bar" 61 layout="@layout/search_drop_target_bar" /> 62 63 <!-- The Workspace cling must appear under the AppsCustomizePagedView below to ensure 64 that it is still visible during the transition to AllApps and doesn't overlay on 65 top of that view. --> 66 <com.android.launcher3.ScrimView 67 android:id="@+id/cling_scrim" 68 android:layout_width="match_parent" 69 android:layout_height="match_parent" 70 android:visibility="gone" /> 71 <include layout="@layout/first_run_cling" 72 android:id="@+id/first_run_cling" 73 android:layout_width="match_parent" 74 android:layout_height="match_parent" 75 android:visibility="gone" /> 76 <include layout="@layout/migration_cling" 77 android:id="@+id/migration_cling" 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" 80 android:visibility="gone" /> 81 <include layout="@layout/migration_workspace_cling" 82 android:id="@+id/migration_workspace_cling" 83 android:layout_width="match_parent" 84 android:layout_height="match_parent" 85 android:visibility="gone" /> 86 <include layout="@layout/workspace_cling" 87 android:id="@+id/workspace_cling" 88 android:layout_width="match_parent" 89 android:layout_height="match_parent" 90 android:visibility="gone" /> 91 <include layout="@layout/folder_cling" 92 android:id="@+id/folder_cling" 93 android:layout_width="match_parent" 94 android:layout_height="match_parent" 95 android:visibility="gone" /> 96 97 <!-- This is the search bar voice button proxy view. It allows us to have a larger 98 touch target than the microphone constrained by the search bar bounds. --> 99 <com.android.launcher3.DrawableStateProxyView 100 android:id="@+id/voice_button_proxy" 101 android:layout_width="0dp" 102 android:layout_height="0dp" 103 android:layout_gravity="top|end" 104 android:clickable="true" 105 android:onClick="onClickVoiceButton" 106 android:importantForAccessibility="no" 107 launcher:sourceViewId="@+id/voice_button" /> 108 109 <include layout="@layout/apps_customize_pane" 110 android:id="@+id/apps_customize_pane" 111 android:layout_width="match_parent" 112 android:layout_height="match_parent" 113 android:visibility="invisible" /> 114 </com.android.launcher3.DragLayer> 115 </FrameLayout> 116