launcher.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.dragndrop.DragLayer
  22. android:id="@+id/drag_layer"
  23. android:clipChildren="false"
  24. android:clipToPadding="false"
  25. android:background="?attr/workspaceStatusBarScrim"
  26. android:importantForAccessibility="no"
  27. android:layout_width="match_parent"
  28. android:layout_height="match_parent">
  29. <!-- The workspace contains 5 screens of cells -->
  30. <!-- DO NOT CHANGE THE ID -->
  31. <com.android.launcher3.Workspace
  32. android:theme="@style/HomeScreenElementTheme"
  33. android:id="@+id/workspace"
  34. android:layout_width="match_parent"
  35. android:layout_height="match_parent"
  36. android:layout_gravity="center"
  37. launcher:pageIndicator="@id/page_indicator" />
  38. <include layout="@layout/gradient_bg" />
  39. <!-- DO NOT CHANGE THE ID -->
  40. <include layout="@layout/hotseat"
  41. android:id="@+id/hotseat"
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent"
  44. android:layout_gravity="right"
  45. launcher:layout_ignoreInsets="true" />
  46. <include
  47. android:id="@+id/drop_target_bar"
  48. layout="@layout/drop_target_bar_vert" />
  49. <include layout="@layout/overview_panel"
  50. android:id="@+id/overview_panel"
  51. android:visibility="gone" />
  52. <include layout="@layout/widgets_view"
  53. android:id="@+id/widgets_view"
  54. android:layout_width="match_parent"
  55. android:layout_height="match_parent"
  56. android:visibility="invisible" />
  57. <include layout="@layout/all_apps"
  58. android:id="@+id/apps_view"
  59. android:layout_width="match_parent"
  60. android:layout_height="match_parent"
  61. android:visibility="invisible" />
  62. <com.android.launcher3.pageindicators.PageIndicatorCaretLandscape
  63. android:id="@+id/page_indicator"
  64. android:theme="@style/HomeScreenElementTheme"
  65. android:layout_width="@dimen/dynamic_grid_min_page_indicator_size"
  66. android:layout_height="@dimen/dynamic_grid_min_page_indicator_size"
  67. android:layout_gravity="bottom|left"/>
  68. </com.android.launcher3.dragndrop.DragLayer>
  69. </com.android.launcher3.LauncherRootView>