widgets_view.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.widget.WidgetsContainerView
  17. xmlns:android="http://schemas.android.com/apk/res/android"
  18. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  19. android:id="@+id/widgets_view"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:descendantFocusability="afterDescendants"
  23. launcher:revealBackground="@drawable/quantum_panel_shape_dark">
  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. <FrameLayout
  33. android:id="@+id/main_content"
  34. android:layout_gravity="center"
  35. android:elevation="15dp"
  36. android:visibility="gone"
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent">
  39. <com.android.launcher3.widget.WidgetsRecyclerView
  40. android:id="@+id/widgets_list_view"
  41. android:theme="@style/Theme.Dark.CustomOverscroll"
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent" />
  44. </FrameLayout>
  45. </com.android.launcher3.widget.WidgetsContainerView>