add_item_confirmation_activity.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /*
  4. ** Copyright 2017, The Android Open Source Project
  5. **
  6. ** Licensed under the Apache License, Version 2.0 (the "License");
  7. ** you may not use this file except in compliance with the License.
  8. ** You may obtain a copy of the License at
  9. **
  10. ** http://www.apache.org/licenses/LICENSE-2.0
  11. **
  12. ** Unless required by applicable law or agreed to in writing, software
  13. ** distributed under the License is distributed on an "AS IS" BASIS,
  14. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ** See the License for the specific language governing permissions and
  16. ** limitations under the License.
  17. */
  18. -->
  19. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  20. android:orientation="vertical"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent">
  23. <TextView
  24. android:paddingLeft="24dp"
  25. android:paddingRight="24dp"
  26. android:paddingTop="4dp"
  27. android:paddingBottom="20dp"
  28. android:text="@string/add_item_request_drag_hint"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content" />
  31. <FrameLayout
  32. android:theme="@style/WidgetContainerTheme"
  33. android:layout_width="match_parent"
  34. android:background="?android:attr/colorPrimaryDark"
  35. android:layout_height="wrap_content">
  36. <com.android.launcher3.dragndrop.LivePreviewWidgetCell
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_weight="1"
  40. android:orientation="vertical"
  41. android:focusable="true"
  42. android:background="?android:attr/colorPrimaryDark"
  43. android:gravity="center_horizontal"
  44. android:id="@+id/widget_cell"
  45. android:layout_gravity="center_horizontal" >
  46. <include layout="@layout/widget_cell_content" />
  47. </com.android.launcher3.dragndrop.LivePreviewWidgetCell>
  48. </FrameLayout>
  49. <LinearLayout
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. style="?android:attr/buttonBarStyle"
  53. android:gravity="end" >
  54. <Button
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:text="@android:string/cancel"
  58. android:onClick="onCancelClick"
  59. style="?android:attr/buttonBarButtonStyle" />
  60. <Button
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:text="@string/place_automatically"
  64. android:onClick="onPlaceAutomaticallyClick"
  65. style="?android:attr/buttonBarButtonStyle" />
  66. </LinearLayout>
  67. </LinearLayout>