drop_target_bar_horz.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2015 The Android Open Source Project
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <com.android.launcher3.DropTargetBar
  15. xmlns:android="http://schemas.android.com/apk/res/android"
  16. xmlns:launcher="http://schemas.android.com/apk/res-auto"
  17. android:layout_width="match_parent"
  18. android:layout_height="@dimen/dynamic_grid_drop_target_size"
  19. android:layout_gravity="center_horizontal|top"
  20. android:focusable="false">
  21. <FrameLayout
  22. android:layout_width="0dp"
  23. android:layout_height="match_parent"
  24. android:layout_weight="1" >
  25. <!-- Delete target -->
  26. <com.android.launcher3.DeleteDropTarget
  27. launcher:hideParentOnDisable="true"
  28. android:layout_width="wrap_content"
  29. android:layout_height="match_parent"
  30. android:layout_gravity="center"
  31. android:gravity="center"
  32. android:id="@+id/delete_target_text"
  33. style="@style/DropTargetButton"
  34. android:text="@string/remove_drop_target_label" />
  35. </FrameLayout>
  36. <FrameLayout
  37. android:layout_width="0dp"
  38. android:layout_height="match_parent"
  39. android:layout_weight="1" >
  40. <!-- App Info -->
  41. <com.android.launcher3.InfoDropTarget
  42. launcher:hideParentOnDisable="true"
  43. android:layout_width="wrap_content"
  44. android:layout_height="match_parent"
  45. android:layout_gravity="center"
  46. android:gravity="center"
  47. android:id="@+id/info_target_text"
  48. style="@style/DropTargetButton"
  49. android:text="@string/app_info_drop_target_label" />
  50. </FrameLayout>
  51. <FrameLayout
  52. android:layout_width="0dp"
  53. android:layout_height="match_parent"
  54. android:layout_weight="1" >
  55. <!-- Uninstall target -->
  56. <com.android.launcher3.UninstallDropTarget
  57. launcher:hideParentOnDisable="true"
  58. android:layout_width="wrap_content"
  59. android:layout_height="match_parent"
  60. android:layout_gravity="center"
  61. android:gravity="center"
  62. android:id="@+id/uninstall_target_text"
  63. style="@style/DropTargetButton"
  64. android:text="@string/uninstall_drop_target_label" />
  65. </FrameLayout>
  66. </com.android.launcher3.DropTargetBar>