all_apps.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. android:id="@+id/apps_view"
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"
  21. android:orientation="vertical">
  22. <!-- Both android:focusable and android:focusableInTouchMode are needed for
  23. the view to get focus change events. -->
  24. <FrameLayout
  25. android:id="@+id/search_box_container"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:focusable="true"
  29. android:focusableInTouchMode="true"
  30. android:visibility="gone" />
  31. <FrameLayout
  32. android:id="@+id/content"
  33. android:layout_width="match_parent"
  34. android:layout_height="0dp"
  35. android:layout_weight="1">
  36. <FrameLayout
  37. android:id="@+id/all_apps_reveal"
  38. android:layout_width="match_parent"
  39. android:layout_height="match_parent"
  40. android:layout_gravity="center"
  41. android:focusable="false"
  42. android:elevation="2dp"
  43. android:visibility="invisible" />
  44. <include
  45. layout="@layout/all_apps_container"
  46. android:id="@+id/all_apps_container"
  47. android:layout_width="match_parent"
  48. android:layout_height="match_parent"
  49. android:layout_gravity="center"
  50. android:visibility="gone" />
  51. </FrameLayout>
  52. </com.android.launcher3.allapps.AllAppsContainerView>