launcher.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. android:fitsSystemWindows="true">
  26. <com.android.launcher3.FocusIndicatorView
  27. android:id="@+id/focus_indicator"
  28. android:layout_width="52dp"
  29. android:layout_height="52dp" />
  30. <!-- The workspace contains 5 screens of cells -->
  31. <com.android.launcher3.Workspace
  32. android:id="@+id/workspace"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
  36. launcher:pageIndicator="@id/page_indicator">
  37. </com.android.launcher3.Workspace>
  38. <include layout="@layout/hotseat"
  39. android:id="@+id/hotseat"
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent" />
  42. <include
  43. android:id="@+id/search_drop_target_bar"
  44. layout="@layout/search_drop_target_bar" />
  45. <include layout="@layout/overview_panel"
  46. android:id="@+id/overview_panel"
  47. android:visibility="gone" />
  48. <!-- Keep these behind the workspace so that they are not visible when
  49. we go into AllApps -->
  50. <include
  51. android:id="@+id/page_indicator"
  52. layout="@layout/page_indicator"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:layout_gravity="center_horizontal" />
  56. <com.android.launcher3.DrawableStateProxyView
  57. android:id="@+id/voice_button_proxy"
  58. android:layout_width="0dp"
  59. android:layout_height="0dp"
  60. android:layout_gravity="top|end"
  61. android:clickable="true"
  62. android:onClick="onClickVoiceButton"
  63. android:importantForAccessibility="no"
  64. launcher:sourceViewId="@+id/voice_button" />
  65. <include layout="@layout/apps_customize_pane"
  66. android:id="@+id/apps_customize_pane"
  67. android:layout_width="match_parent"
  68. android:layout_height="match_parent"
  69. android:visibility="invisible" />
  70. </com.android.launcher3.DragLayer>
  71. </FrameLayout>