Home | History | Annotate | Download | only in layout-port
      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         <com.android.launcher3.FocusIndicatorView
     33             android:id="@+id/focus_indicator"
     34             android:layout_width="52dp"
     35             android:layout_height="52dp" />
     36 
     37         <!-- The workspace contains 5 screens of cells -->
     38         <com.android.launcher3.Workspace
     39             android:id="@+id/workspace"
     40             android:layout_width="match_parent"
     41             android:layout_height="match_parent"
     42             launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
     43             launcher:pageIndicator="@+id/page_indicator">
     44         </com.android.launcher3.Workspace>
     45 
     46         <include layout="@layout/hotseat"
     47             android:id="@+id/hotseat"
     48             android:layout_width="match_parent"
     49             android:layout_height="match_parent" />
     50 
     51         <include layout="@layout/overview_panel"
     52             android:id="@+id/overview_panel"
     53             android:visibility="gone" />
     54 
     55         <!-- Keep these behind the workspace so that they are not visible when
     56              we go into AllApps -->
     57         <include
     58             android:id="@+id/page_indicator"
     59             layout="@layout/page_indicator"
     60             android:layout_width="wrap_content"
     61             android:layout_height="wrap_content"
     62             android:layout_gravity="center_horizontal" />
     63 
     64         <include
     65             android:id="@+id/search_drop_target_bar"
     66             layout="@layout/search_drop_target_bar" />
     67 
     68         <!-- This is the search bar voice button proxy view.  It allows us to have a larger
     69              touch target than the microphone constrained by the search bar bounds. -->
     70         <com.android.launcher3.DrawableStateProxyView
     71             android:id="@+id/voice_button_proxy"
     72             android:layout_width="0dp"
     73             android:layout_height="0dp"
     74             android:layout_gravity="top|end"
     75             android:clickable="true"
     76             android:onClick="onClickVoiceButton"
     77             android:importantForAccessibility="no"
     78             launcher:sourceViewId="@+id/voice_button" />
     79 
     80         <include layout="@layout/apps_customize_pane"
     81             android:id="@+id/apps_customize_pane"
     82             android:layout_width="match_parent"
     83             android:layout_height="match_parent"
     84             android:visibility="invisible" />
     85     </com.android.launcher3.DragLayer>
     86 </FrameLayout>
     87