1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2007 The Android Open Source Project 3 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 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="fill_parent" 18 android:layout_height="fill_parent" 19 android:orientation="vertical" 20 android:fillViewport="true"> 21 22 <ScrollView 23 android:layout_width="fill_parent" 24 android:layout_height="fill_parent" 25 android:layout_weight="1" 26 android:orientation="vertical"> 27 28 <LinearLayout 29 android:layout_width="fill_parent" 30 android:layout_height="fill_parent" 31 android:orientation="vertical" 32 > 33 34 <LinearLayout android:id="@+id/banner" 35 android:layout_width="fill_parent" 36 android:layout_height="wrap_content" 37 android:orientation="horizontal" 38 android:padding="0dip" 39 android:gravity="center_vertical" 40 android:baselineAligned="false" 41 > 42 43 <FrameLayout 44 android:layout_width="76dip" 45 android:layout_height="76dip" 46 android:layout_marginTop="4dip" 47 android:layout_marginLeft="6dip" 48 android:layout_marginBottom="6dip" 49 android:layout_marginRight="2dip" 50 > 51 <ImageView android:id="@+id/photoImage" 52 android:layout_width="fill_parent" 53 android:layout_height="fill_parent" 54 android:clickable="true" 55 android:focusable="true" 56 android:src="@drawable/ic_menu_add_picture" 57 android:scaleType="center" 58 android:background="@drawable/btn_contact_picture" 59 /> 60 </FrameLayout> 61 62 <EditText android:id="@+id/name" 63 android:layout_width="0dip" 64 android:layout_weight="1" 65 android:layout_height="wrap_content" 66 android:layout_marginRight="?android:attr/scrollbarSize" 67 android:gravity="center_vertical" 68 android:inputType="textPersonName|textCapWords" 69 android:hint="@string/ghostData_name" 70 android:nextFocusDown="@id/data" 71 /> 72 73 <ImageView android:id="@+id/star" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 /> 77 </LinearLayout> 78 79 <!-- "Phonetic name" entry widget, visible only in certain locales --> 80 <include layout="@layout/edit_phonetic_name"/> 81 82 <LinearLayout 83 android:layout_width="fill_parent" 84 android:layout_height="0dip" 85 android:layout_weight="1" 86 android:orientation="vertical" 87 > 88 89 <!-- The edit items --> 90 <LinearLayout android:id="@+id/list" 91 android:layout_width="fill_parent" 92 android:layout_height="wrap_content" 93 android:orientation="vertical" 94 /> 95 96 </LinearLayout> 97 </LinearLayout> 98 </ScrollView> 99 100 <LinearLayout 101 android:layout_width="fill_parent" 102 android:layout_height="wrap_content" 103 android:orientation="horizontal" 104 style="@android:style/ButtonBar" 105 > 106 107 <Button android:id="@+id/saveButton" 108 android:layout_width="0dip" 109 android:layout_height="wrap_content" 110 android:layout_weight="1" 111 android:text="@string/menu_done" 112 /> 113 114 <Button android:id="@+id/discardButton" 115 android:layout_width="0dip" 116 android:layout_height="wrap_content" 117 android:layout_weight="1" 118 android:text="@string/menu_doNotSave" 119 /> 120 121 </LinearLayout> 122</LinearLayout> 123