1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Copyright (C) 2011 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:layout_gravity="center_vertical" 22 android:orientation="horizontal" 23 android:layout_marginTop="10dip" 24 android:layout_marginLeft="5dip" 25 android:layout_marginRight="5dip" 26 android:layout_marginBottom="15dip"> 27 28 <LinearLayout 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:layout_gravity="center_vertical" 32 android:orientation="vertical"> 33 <RelativeLayout 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_gravity="center_vertical" 37 android:layout_marginLeft="5dip" 38 android:layout_marginRight="10dip"> 39 <ImageView android:id="@+id/overlay_generic" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:src="@drawable/effects_generic"/> 43 <ImageView android:id="@+id/overlay_preview" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content"/> 46 </RelativeLayout> 47 48 <Button android:id="@+id/overlay_change_title_template" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_marginTop="10dip" 52 android:text="@string/overlay_change_title_template_button_text" /> 53 </LinearLayout>> 54 55 <LinearLayout 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:layout_gravity="center_vertical" 59 android:orientation="vertical" 60 android:layout_marginLeft="30dip" 61 android:layout_marginTop="5dip"> 62 <EditText android:id="@+id/overlay_title" 63 android:layout_width="192dip" 64 android:layout_height="wrap_content" 65 android:layout_marginLeft="10dip" 66 android:layout_marginRight="10dip" 67 android:hint="@string/overlay_title_label" 68 android:singleLine="true"/> 69 70 <EditText android:id="@+id/overlay_subtitle" 71 android:layout_width="192dip" 72 android:layout_height="wrap_content" 73 android:layout_marginTop="5dip" 74 android:layout_marginLeft="10dip" 75 android:layout_marginRight="10dip" 76 android:hint="@string/overlay_subtitle_label" 77 android:singleLine="true"/> 78 79 <LinearLayout 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:orientation="horizontal" 83 android:layout_gravity="center_horizontal" 84 android:layout_marginTop="20dip"> 85 86 <Button android:id="@+id/overlay_ok" 87 android:onClick="onClickHandler" 88 android:layout_width="match_parent" 89 android:layout_height="wrap_content" 90 android:layout_weight="1.0" 91 android:text="@android:string/ok"/> 92 <Button android:id="@+id/overlay_cancel" 93 android:onClick="onClickHandler" 94 android:layout_width="match_parent" 95 android:layout_height="wrap_content" 96 android:layout_weight="1.0" 97 android:text="@android:string/cancel"/> 98 </LinearLayout> 99 </LinearLayout> 100 </LinearLayout> 101