The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 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 | |
| 17 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:layout_width="fill_parent" |
| 19 | android:layout_height="fill_parent" |
| 20 | android:orientation="vertical" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 21 | android:fillViewport="true"> |
| 22 | |
| 23 | <LinearLayout |
| 24 | android:layout_width="fill_parent" |
| 25 | android:layout_height="fill_parent" |
| 26 | android:orientation="vertical" |
| 27 | > |
| 28 | |
| 29 | <LinearLayout android:id="@+id/banner" |
| 30 | android:layout_width="fill_parent" |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 31 | android:layout_height="wrap_content" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 32 | android:orientation="horizontal" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 33 | android:padding="0dip" |
| 34 | android:gravity="center_vertical" |
| 35 | android:baselineAligned="false" |
| 36 | > |
| 37 | |
| 38 | <FrameLayout |
The Android Open Source Project | 3b02422 | 2009-02-13 12:57:53 -0800 | [diff] [blame] | 39 | android:layout_width="76dip" |
| 40 | android:layout_height="76dip" |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 41 | android:layout_marginTop="4dip" |
The Android Open Source Project | 3b02422 | 2009-02-13 12:57:53 -0800 | [diff] [blame] | 42 | android:layout_marginLeft="6dip" |
| 43 | android:layout_marginBottom="6dip" |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 44 | android:layout_marginRight="2dip" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 45 | > |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 46 | <ImageView android:id="@+id/photoImage" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 47 | android:layout_width="fill_parent" |
| 48 | android:layout_height="fill_parent" |
| 49 | android:clickable="true" |
| 50 | android:focusable="true" |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 51 | android:src="@drawable/ic_menu_add_picture" |
| 52 | android:scaleType="center" |
The Android Open Source Project | 3b02422 | 2009-02-13 12:57:53 -0800 | [diff] [blame] | 53 | android:background="@drawable/btn_contact_picture" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 54 | /> |
| 55 | </FrameLayout> |
| 56 | |
| 57 | <EditText android:id="@+id/name" |
| 58 | android:layout_width="0dip" |
| 59 | android:layout_weight="1" |
| 60 | android:layout_height="wrap_content" |
The Android Open Source Project | 3b02422 | 2009-02-13 12:57:53 -0800 | [diff] [blame] | 61 | android:layout_marginRight="?android:attr/scrollbarSize" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 62 | android:gravity="center_vertical" |
The Android Open Source Project | d935170 | 2008-12-17 18:05:55 -0800 | [diff] [blame] | 63 | android:inputType="textPersonName|textCapWords" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 64 | android:hint="@string/ghostData_name" |
| 65 | android:nextFocusDown="@id/data" |
| 66 | /> |
| 67 | |
| 68 | <ImageView android:id="@+id/star" |
| 69 | android:layout_width="wrap_content" |
| 70 | android:layout_height="wrap_content" |
| 71 | /> |
| 72 | </LinearLayout> |
| 73 | |
The Android Open Source Project | 42b987b | 2009-01-22 00:13:44 -0800 | [diff] [blame] | 74 | <!-- "Phonetic name" entry widget, visible only in certain locales --> |
| 75 | <include layout="@layout/edit_phonetic_name"/> |
The Android Open Source Project | 9cb63a5 | 2009-01-09 17:51:25 -0800 | [diff] [blame] | 76 | |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 77 | <LinearLayout |
| 78 | android:layout_width="fill_parent" |
| 79 | android:layout_height="0dip" |
| 80 | android:layout_weight="1" |
| 81 | android:orientation="vertical" |
The Android Open Source Project | 3b02422 | 2009-02-13 12:57:53 -0800 | [diff] [blame] | 82 | > |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 83 | |
| 84 | <!-- The edit items --> |
| 85 | <LinearLayout android:id="@+id/list" |
| 86 | android:layout_width="fill_parent" |
| 87 | android:layout_height="wrap_content" |
| 88 | android:orientation="vertical" |
| 89 | /> |
| 90 | |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 91 | </LinearLayout> |
| 92 | |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 93 | <LinearLayout |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 94 | android:layout_width="fill_parent" |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 95 | android:layout_height="wrap_content" |
The Android Open Source Project | 3b02422 | 2009-02-13 12:57:53 -0800 | [diff] [blame] | 96 | android:orientation="horizontal" |
| 97 | style="@android:style/ButtonBar" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 98 | > |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 99 | |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 100 | <Button android:id="@+id/saveButton" |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 101 | android:layout_width="0dip" |
The Android Open Source Project | 3b02422 | 2009-02-13 12:57:53 -0800 | [diff] [blame] | 102 | android:layout_height="wrap_content" |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 103 | android:layout_weight="1" |
| 104 | android:text="@string/menu_done" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 105 | /> |
| 106 | |
| 107 | <Button android:id="@+id/discardButton" |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 108 | android:layout_width="0dip" |
The Android Open Source Project | 3b02422 | 2009-02-13 12:57:53 -0800 | [diff] [blame] | 109 | android:layout_height="wrap_content" |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 110 | android:layout_weight="1" |
| 111 | android:text="@string/menu_doNotSave" |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 112 | /> |
The Android Open Source Project | 42e29b7 | 2009-02-10 15:44:04 -0800 | [diff] [blame] | 113 | |
| 114 | </LinearLayout> |
| 115 | |
The Android Open Source Project | 5dc3b4f | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 116 | </LinearLayout> |
| 117 | </ScrollView> |