all_apps.xml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2015 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.AllAppsContainerView
  17. xmlns:android="http://schemas.android.com/apk/res/android"
  18. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  19. android:id="@+id/apps_view"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:orientation="vertical"
  23. launcher:revealBackground="@drawable/quantum_panel_shape">
  24. <View
  25. android:id="@+id/reveal_view"
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent"
  28. android:layout_gravity="center"
  29. android:focusable="false"
  30. android:elevation="2dp"
  31. android:visibility="invisible" />
  32. <com.android.launcher3.allapps.AllAppsRecyclerViewContainerView
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"
  35. android:id="@+id/main_content"
  36. android:saveEnabled="false"
  37. android:visibility="gone"
  38. android:layout_gravity="center"
  39. android:focusable="true"
  40. android:focusableInTouchMode="true"
  41. android:elevation="15dp" >
  42. <!-- DO NOT CHANGE THE ID -->
  43. <com.android.launcher3.allapps.AllAppsRecyclerView
  44. android:id="@+id/apps_list_view"
  45. android:theme="@style/Theme.Light.CustomOverscroll"
  46. android:layout_width="match_parent"
  47. android:layout_height="match_parent"
  48. android:layout_gravity="center_horizontal|top"
  49. android:clipToPadding="false"
  50. android:focusable="true"
  51. android:layout_marginTop="@dimen/all_apps_search_bar_height"
  52. android:descendantFocusability="afterDescendants" />
  53. <LinearLayout
  54. android:id="@+id/search_container"
  55. android:layout_width="match_parent"
  56. android:saveEnabled="false"
  57. android:layout_height="@dimen/all_apps_search_bar_height"
  58. android:layout_gravity="start|top"
  59. android:orientation="horizontal"
  60. android:background="@drawable/all_apps_search_bg" >
  61. <com.android.launcher3.ExtendedEditText
  62. android:id="@+id/search_box_input"
  63. android:layout_width="match_parent"
  64. android:layout_height="match_parent"
  65. android:background="@android:color/transparent"
  66. android:focusableInTouchMode="true"
  67. android:gravity="fill_horizontal|center_vertical"
  68. android:hint="@string/all_apps_search_bar_hint"
  69. android:inputType="text|textNoSuggestions|textCapWords"
  70. android:imeOptions="actionSearch|flagNoExtractUi"
  71. android:maxLines="1"
  72. android:scrollHorizontally="true"
  73. android:layout_marginLeft="@dimen/container_fastscroll_thumb_max_width"
  74. android:layout_marginRight="@dimen/container_fastscroll_thumb_max_width"
  75. android:singleLine="true"
  76. android:textColor="#4c4c4c"
  77. android:textColorHint="#9c9c9c"
  78. android:textSize="16sp" />
  79. </LinearLayout>
  80. </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView>
  81. </com.android.launcher3.allapps.AllAppsContainerView>