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:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical"> 23 <ScrollView 24 android:layout_width="match_parent" 25 android:layout_height="0dp" 26 android:layout_weight="1" 27 android:clipToPadding="false"> 28 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:orientation="vertical"> 33 34 <TextView 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:paddingBottom="20dp" 38 android:paddingLeft="24dp" 39 android:paddingRight="24dp" 40 android:paddingTop="4dp" 41 android:text="@string/add_item_request_drag_hint" /> 42 43 <FrameLayout 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:background="?android:attr/colorPrimaryDark" 47 android:theme="?attr/widgetsTheme"> 48 49 <com.android.launcher3.dragndrop.LivePreviewWidgetCell 50 android:id="@+id/widget_cell" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:layout_gravity="center_horizontal" 54 android:layout_weight="1" 55 android:background="?android:attr/colorPrimaryDark" 56 android:focusable="true" 57 android:gravity="center_horizontal" 58 android:orientation="vertical" > 59 60 <include layout="@layout/widget_cell_content" /> 61 62 </com.android.launcher3.dragndrop.LivePreviewWidgetCell> 63 </FrameLayout> 64 </LinearLayout> 65 </ScrollView> 66 67 <LinearLayout 68 style="?android:attr/buttonBarStyle" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:gravity="end" 72 android:paddingBottom="4dp" 73 android:paddingEnd="12dp" 74 android:paddingStart="12dp" 75 android:paddingTop="4dp" > 76 <Button 77 style="?android:attr/buttonBarButtonStyle" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:onClick="onCancelClick" 81 android:text="@android:string/cancel" /> 82 <Button 83 style="?android:attr/buttonBarButtonStyle" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:onClick="onPlaceAutomaticallyClick" 87 android:text="@string/place_automatically" /> 88 </LinearLayout> 89</LinearLayout> 90