launcher.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. <com.android.launcher3.LauncherRootView
  15. xmlns:android="http://schemas.android.com/apk/res/android"
  16. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  17. android:id="@+id/launcher"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:background="@drawable/workspace_bg"
  21. android:fitsSystemWindows="true">
  22. <com.android.launcher3.DragLayer
  23. android:id="@+id/drag_layer"
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent">
  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 layout="@layout/overview_panel"
  43. android:id="@+id/overview_panel"
  44. android:visibility="gone" />
  45. <!-- Keep these behind the workspace so that they are not visible when
  46. we go into AllApps -->
  47. <include
  48. android:id="@+id/page_indicator"
  49. layout="@layout/page_indicator"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_gravity="center_horizontal" />
  53. <include
  54. android:id="@+id/search_drop_target_bar"
  55. layout="@layout/search_drop_target_bar" />
  56. <include layout="@layout/apps_customize_pane"
  57. android:id="@+id/apps_customize_pane"
  58. android:layout_width="match_parent"
  59. android:layout_height="match_parent"
  60. android:visibility="invisible" />
  61. </com.android.launcher3.DragLayer>
  62. <ViewStub
  63. android:id="@+id/launcher_overlay_stub"
  64. android:layout_width="match_parent"
  65. android:layout_height="match_parent"
  66. android:inflatedId="@+id/launcher_overlay"
  67. android:layout="@layout/launcher_overlay" />
  68. </com.android.launcher3.LauncherRootView>