launcher.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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:fitsSystemWindows="true">
  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. <!-- DO NOT CHANGE THE ID -->
  31. <com.android.launcher3.Workspace
  32. android:id="@+id/workspace"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. android:layout_gravity="center"
  36. launcher:defaultScreen="@integer/config_workspaceDefaultScreen" />
  37. <!-- DO NOT CHANGE THE ID -->
  38. <include layout="@layout/hotseat"
  39. android:id="@+id/hotseat"
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent"
  42. android:layout_gravity="right" />
  43. <include
  44. android:id="@+id/search_drop_target_bar"
  45. layout="@layout/search_drop_target_bar" />
  46. <include layout="@layout/overview_panel"
  47. android:id="@+id/overview_panel"
  48. android:visibility="gone" />
  49. <include layout="@layout/widgets_view"
  50. android:id="@+id/widgets_view"
  51. android:layout_width="match_parent"
  52. android:layout_height="match_parent"
  53. android:visibility="invisible" />
  54. <include layout="@layout/all_apps"
  55. android:id="@+id/apps_view"
  56. android:layout_width="match_parent"
  57. android:layout_height="match_parent"
  58. android:visibility="invisible" />
  59. </com.android.launcher3.DragLayer>
  60. <ViewStub
  61. android:id="@+id/launcher_overlay_stub"
  62. android:layout_width="match_parent"
  63. android:layout_height="match_parent"
  64. android:inflatedId="@+id/launcher_overlay"
  65. android:layout="@layout/launcher_overlay" />
  66. </com.android.launcher3.LauncherRootView>