all_apps.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2016 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. <!-- The top and bottom paddings are defined in this container, but since we want
  14. the list view to span the full width (for touch interception purposes), we
  15. will bake the left/right padding into that view's background itself. -->
  16. <com.android.launcher3.allapps.LauncherAllAppsContainerView
  17. xmlns:android="http://schemas.android.com/apk/res/android"
  18. android:id="@+id/apps_view"
  19. android:theme="?attr/allAppsTheme"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:clipChildren="true"
  23. android:clipToPadding="false"
  24. android:focusable="false"
  25. android:saveEnabled="false">
  26. <include
  27. layout="@layout/all_apps_rv_layout"
  28. android:visibility="gone" />
  29. <com.android.launcher3.allapps.FloatingHeaderView
  30. android:id="@+id/all_apps_header"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_below="@id/search_container_all_apps"
  34. android:clipToPadding="false"
  35. android:paddingTop="@dimen/all_apps_header_top_padding"
  36. android:orientation="vertical" >
  37. <include layout="@layout/floating_header_content" />
  38. <com.android.launcher3.allapps.PersonalWorkSlidingTabStrip
  39. android:id="@+id/tabs"
  40. android:layout_width="match_parent"
  41. android:layout_height="@dimen/all_apps_header_tab_height"
  42. android:layout_marginLeft="@dimen/all_apps_tabs_side_padding"
  43. android:layout_marginRight="@dimen/all_apps_tabs_side_padding"
  44. android:orientation="horizontal"
  45. style="@style/TextHeadline">
  46. <Button
  47. android:id="@+id/tab_personal"
  48. android:layout_width="0dp"
  49. android:layout_height="match_parent"
  50. android:layout_weight="1"
  51. android:background="?android:attr/selectableItemBackground"
  52. android:text="@string/all_apps_personal_tab"
  53. android:textColor="@color/all_apps_tab_text"
  54. android:textSize="14sp" />
  55. <Button
  56. android:id="@+id/tab_work"
  57. android:layout_width="0dp"
  58. android:layout_height="match_parent"
  59. android:layout_weight="1"
  60. android:background="?android:attr/selectableItemBackground"
  61. android:text="@string/all_apps_work_tab"
  62. android:textColor="@color/all_apps_tab_text"
  63. android:textSize="14sp" />
  64. </com.android.launcher3.allapps.PersonalWorkSlidingTabStrip>
  65. </com.android.launcher3.allapps.FloatingHeaderView>
  66. <include
  67. android:id="@id/search_container_all_apps"
  68. layout="@layout/search_container_all_apps"/>
  69. <include layout="@layout/all_apps_fast_scroller" />
  70. </com.android.launcher3.allapps.LauncherAllAppsContainerView>