launcher.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 xmlns:android="http://schemas.android.com/apk/res/android"
  13. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  14. android:id="@+id/launcher"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:fitsSystemWindows="true">
  18. <!-- 主界面View-->
  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. <!-- The workspace contains 5 screens of cells -->
  27. <!-- DO NOT CHANGE THE ID -->
  28. <com.android.launcher3.Workspace
  29. android:id="@+id/workspace"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. android:layout_gravity="center"
  33. android:theme="@style/HomeScreenElementTheme"
  34. launcher:pageIndicator="@+id/page_indicator" />
  35. <!-- DO NOT CHANGE THE ID -->
  36. <include
  37. android:id="@+id/hotseat"
  38. layout="@layout/hotseat" />
  39. <include
  40. android:id="@+id/overview_panel"
  41. layout="@layout/overview_panel" />
  42. <!-- Keep these behind the workspace so that they are not visible when
  43. we go into AllApps -->
  44. <!--整体移动的viewpager -->
  45. <com.android.launcher3.pageindicators.WorkspacePageIndicator
  46. android:id="@+id/page_indicator"
  47. android:layout_width="match_parent"
  48. android:layout_height="@dimen/workspace_page_indicator_height"
  49. android:layout_gravity="bottom|center_horizontal"
  50. android:background="@color/grassgreen"
  51. android:theme="@style/HomeScreenElementTheme" />
  52. <include
  53. android:id="@+id/drop_target_bar"
  54. layout="@layout/drop_target_bar" />
  55. <include
  56. android:id="@+id/scrim_view"
  57. layout="@layout/scrim_view" />
  58. <include
  59. android:id="@+id/apps_view"
  60. layout="@layout/all_apps"
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent" />
  63. </com.android.launcher3.dragndrop.DragLayer>
  64. </com.android.launcher3.LauncherRootView>