launcher.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2007 The Android Open Source Project
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.
  11. -->
  12. <com.android.launcher3.LauncherRootView
  13. xmlns:android="http://schemas.android.com/apk/res/android"
  14. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  15. android:id="@+id/launcher"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:fitsSystemWindows="true">
  19. <com.android.launcher3.dragndrop.DragLayer
  20. android:id="@+id/drag_layer"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:clipChildren="false"
  24. android:clipToPadding="false"
  25. android:importantForAccessibility="no">
  26. <com.android.launcher3.views.AccessibilityActionsView
  27. android:layout_width="match_parent"
  28. android:layout_height="match_parent"
  29. android:contentDescription="@string/home_screen"
  30. />
  31. <!-- The workspace contains 5 screens of cells -->
  32. <!-- DO NOT CHANGE THE ID -->
  33. <com.android.launcher3.Workspace
  34. android:id="@+id/workspace"
  35. android:layout_width="match_parent"
  36. android:layout_height="match_parent"
  37. android:layout_gravity="center"
  38. android:theme="@style/HomeScreenElementTheme"
  39. launcher:pageIndicator="@+id/page_indicator" />
  40. <!-- DO NOT CHANGE THE ID -->
  41. <include
  42. android:id="@+id/hotseat"
  43. layout="@layout/hotseat" />
  44. <!-- Keep these behind the workspace so that they are not visible when
  45. we go into AllApps -->
  46. <com.android.launcher3.pageindicators.WorkspacePageIndicator
  47. android:id="@+id/page_indicator"
  48. android:layout_width="match_parent"
  49. android:layout_height="@dimen/workspace_page_indicator_height"
  50. android:layout_gravity="bottom|center_horizontal"
  51. android:theme="@style/HomeScreenElementTheme" />
  52. <include
  53. android:id="@+id/drop_target_bar"
  54. layout="@layout/drop_target_bar" />
  55. <com.android.launcher3.views.ScrimView
  56. android:layout_width="match_parent"
  57. android:layout_height="match_parent"
  58. android:id="@+id/scrim_view"
  59. android:background="@android:color/transparent" />
  60. <include
  61. android:id="@+id/apps_view"
  62. layout="@layout/all_apps"
  63. android:layout_width="match_parent"
  64. android:layout_height="match_parent" />
  65. <include
  66. android:id="@+id/overview_panel"
  67. layout="@layout/overview_panel" />
  68. </com.android.launcher3.dragndrop.DragLayer>
  69. </com.android.launcher3.LauncherRootView>