search_drop_target_bar.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2011 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.SearchDropTargetBar xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:focusable="false"
  18. android:orientation="horizontal" >
  19. <!-- Drag specific targets container -->
  20. <LinearLayout
  21. android:id="@+id/drag_target_bar"
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:layout_gravity="center" >
  25. <FrameLayout
  26. style="@style/DropTargetButtonContainer"
  27. android:layout_weight="1" >
  28. <!-- Delete target -->
  29. <com.android.launcher3.DeleteDropTarget
  30. android:id="@+id/delete_target_text"
  31. style="@style/DropTargetButton"
  32. android:drawableStart="@drawable/remove_target_selector"
  33. android:text="@string/delete_zone_label_workspace" />
  34. </FrameLayout>
  35. <FrameLayout
  36. style="@style/DropTargetButtonContainer"
  37. android:layout_weight="1" >
  38. <!-- Info target -->
  39. <com.android.launcher3.InfoDropTarget
  40. android:id="@+id/info_target_text"
  41. style="@style/DropTargetButton"
  42. android:drawableStart="@drawable/info_target_selector"
  43. android:text="@string/info_target_label" />
  44. </FrameLayout>
  45. </LinearLayout>
  46. </com.android.launcher3.SearchDropTargetBar>