launcher.xml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2007 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <!-- Full screen view projects under the status bar and contains the background -->
  14. <FrameLayout
  15. xmlns:android="http://schemas.android.com/apk/res/android"
  16. xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
  17. android:id="@+id/launcher"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:background="@drawable/workspace_bg">
  21. <com.android.launcher3.DragLayer
  22. android:id="@+id/drag_layer"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent">
  25. <com.android.launcher3.FocusIndicatorView
  26. android:id="@+id/focus_indicator"
  27. android:layout_width="52dp"
  28. android:layout_height="52dp" />
  29. <!-- The workspace contains 5 screens of cells -->
  30. <com.android.launcher3.Workspace
  31. android:id="@+id/workspace"
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent"
  34. launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
  35. launcher:pageIndicator="@+id/page_indicator">
  36. </com.android.launcher3.Workspace>
  37. <include layout="@layout/hotseat"
  38. android:id="@+id/hotseat"
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent" />
  41. <include layout="@layout/overview_panel"
  42. android:id="@+id/overview_panel"
  43. android:visibility="gone" />
  44. <!-- Keep these behind the workspace so that they are not visible when
  45. we go into AllApps -->
  46. <include
  47. android:id="@+id/page_indicator"
  48. layout="@layout/page_indicator"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:layout_gravity="center_horizontal" />
  52. <include
  53. android:id="@+id/search_drop_target_bar"
  54. layout="@layout/search_drop_target_bar" />
  55. <!-- This is the search bar voice button proxy view. It allows us to have a larger
  56. touch target than the microphone constrained by the search bar bounds. -->
  57. <com.android.launcher3.DrawableStateProxyView
  58. android:id="@+id/voice_button_proxy"
  59. android:layout_width="0dp"
  60. android:layout_height="0dp"
  61. android:layout_gravity="top|end"
  62. android:clickable="true"
  63. android:onClick="onClickVoiceButton"
  64. android:importantForAccessibility="no"
  65. launcher:sourceViewId="@+id/voice_button" />
  66. <include layout="@layout/apps_customize_pane"
  67. android:id="@+id/apps_customize_pane"
  68. android:layout_width="match_parent"
  69. android:layout_height="match_parent"
  70. android:visibility="invisible" />
  71. </com.android.launcher3.DragLayer>
  72. </FrameLayout>