Jeff Sharkey | 2ae666e | 2009-07-21 19:30:57 -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 |
Neel Parekh | 450b88f | 2009-09-22 12:01:39 -0700 | [diff] [blame] | 7 | |
Jeff Sharkey | 2ae666e | 2009-07-21 19:30:57 -0700 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Neel Parekh | 450b88f | 2009-09-22 12:01:39 -0700 | [diff] [blame] | 9 | |
Jeff Sharkey | 2ae666e | 2009-07-21 19:30:57 -0700 | [diff] [blame] | 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 | |
Dmitri Plotnikov | 18ffaa2 | 2010-12-03 14:28:00 -0800 | [diff] [blame^] | 17 | <com.android.contacts.editor.RawContactEditorView |
Jeff Sharkey | 2ae666e | 2009-07-21 19:30:57 -0700 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 19 | android:layout_width="match_parent" |
Jeff Hamilton | 5297c6a | 2009-10-01 02:22:33 -0700 | [diff] [blame] | 20 | android:layout_height="wrap_content" |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 21 | android:orientation="vertical" |
Jeff Hamilton | 5297c6a | 2009-10-01 02:22:33 -0700 | [diff] [blame] | 22 | > |
Jeff Sharkey | 2ae666e | 2009-07-21 19:30:57 -0700 | [diff] [blame] | 23 | |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 24 | <!-- Account info header --> |
| 25 | <RelativeLayout android:id="@+id/header" |
| 26 | android:layout_height="64dip" |
| 27 | android:layout_width="match_parent" |
Daniel Lehmann | 0cb15be | 2010-07-22 21:05:16 -0700 | [diff] [blame] | 28 | android:background="@android:drawable/list_selector_background" |
Jeff Hamilton | 5297c6a | 2009-10-01 02:22:33 -0700 | [diff] [blame] | 29 | > |
Jeff Sharkey | 2ae666e | 2009-07-21 19:30:57 -0700 | [diff] [blame] | 30 | |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 31 | <ImageView android:id="@+id/header_color_bar" |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 32 | android:layout_width="match_parent" |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 33 | android:layout_height="4dip" |
| 34 | android:layout_marginBottom="5dip" |
| 35 | android:background="@color/edit_divider" |
| 36 | /> |
Jeff Hamilton | 5297c6a | 2009-10-01 02:22:33 -0700 | [diff] [blame] | 37 | |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 38 | <ImageView android:id="@+id/header_icon" |
| 39 | android:layout_width="wrap_content" |
Jeff Hamilton | 1fb6275 | 2009-10-07 04:40:27 -0500 | [diff] [blame] | 40 | android:layout_height="wrap_content" |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 41 | android:layout_marginLeft="7dip" |
| 42 | android:layout_marginRight="7dip" |
| 43 | android:layout_centerVertical="true" |
| 44 | android:layout_below="@id/header_color_bar" |
| 45 | /> |
Jeff Hamilton | 5297c6a | 2009-10-01 02:22:33 -0700 | [diff] [blame] | 46 | |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 47 | <TextView android:id="@+id/header_account_type" |
| 48 | android:layout_width="wrap_content" |
Jeff Hamilton | 5297c6a | 2009-10-01 02:22:33 -0700 | [diff] [blame] | 49 | android:layout_height="wrap_content" |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 50 | android:layout_toRightOf="@+id/header_icon" |
| 51 | android:layout_alignTop="@id/header_icon" |
| 52 | android:layout_marginTop="-4dip" |
Jeff Sharkey | aad8848 | 2009-08-29 18:19:20 -0700 | [diff] [blame] | 53 | |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 54 | android:textSize="24sp" |
| 55 | android:textColor="?android:attr/textColorPrimary" |
| 56 | android:singleLine="true" |
| 57 | /> |
| 58 | |
| 59 | <TextView android:id="@+id/header_account_name" |
| 60 | android:layout_width="wrap_content" |
Jeff Hamilton | 5297c6a | 2009-10-01 02:22:33 -0700 | [diff] [blame] | 61 | android:layout_height="wrap_content" |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 62 | android:layout_toRightOf="@+id/header_icon" |
| 63 | android:layout_alignBottom="@+id/header_icon" |
| 64 | android:layout_marginBottom="2dip" |
| 65 | |
| 66 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 67 | android:textColor="?android:attr/textColorPrimary" |
| 68 | android:singleLine="true" |
Jeff Hamilton | 5297c6a | 2009-10-01 02:22:33 -0700 | [diff] [blame] | 69 | /> |
Jeff Sharkey | aad8848 | 2009-08-29 18:19:20 -0700 | [diff] [blame] | 70 | |
Daniel Lehmann | bb55695 | 2010-05-14 15:03:45 -0700 | [diff] [blame] | 71 | <View |
Romain Guy | 6304c0b | 2010-01-08 15:06:49 -0800 | [diff] [blame] | 72 | android:layout_width="match_parent" |
Jeff Hamilton | 753b74f | 2009-10-08 19:46:26 -0500 | [diff] [blame] | 73 | android:layout_height="1px" |
Daniel Lehmann | bb55695 | 2010-05-14 15:03:45 -0700 | [diff] [blame] | 74 | android:layout_alignParentBottom="true" |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 75 | |
Daniel Lehmann | bb55695 | 2010-05-14 15:03:45 -0700 | [diff] [blame] | 76 | android:background="?android:attr/listDivider" |
Jeff Hamilton | 1fb6275 | 2009-10-07 04:40:27 -0500 | [diff] [blame] | 77 | /> |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 78 | </RelativeLayout> |
| 79 | |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 80 | <LinearLayout |
Daniel Lehmann | 0cb15be | 2010-07-22 21:05:16 -0700 | [diff] [blame] | 81 | android:id="@+id/body" |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 82 | android:layout_width="match_parent" |
| 83 | android:layout_height="wrap_content" |
Daniel Lehmann | 0cb15be | 2010-07-22 21:05:16 -0700 | [diff] [blame] | 84 | android:orientation="vertical"> |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 85 | |
Daniel Lehmann | 0cb15be | 2010-07-22 21:05:16 -0700 | [diff] [blame] | 86 | <FrameLayout |
| 87 | android:id="@+id/stub_photo" |
| 88 | android:layout_width="match_parent" |
| 89 | android:layout_height="wrap_content" |
| 90 | android:paddingLeft="12dip" |
| 91 | android:paddingTop="10dip"> |
Daniel Lehmann | f3eb02e | 2010-07-01 13:17:29 +0200 | [diff] [blame] | 92 | |
Daniel Lehmann | 0cb15be | 2010-07-22 21:05:16 -0700 | [diff] [blame] | 93 | <include |
| 94 | android:id="@+id/edit_photo" |
| 95 | layout="@layout/item_photo_editor" /> |
Jeff Sharkey | 2ae666e | 2009-07-21 19:30:57 -0700 | [diff] [blame] | 96 | |
Daniel Lehmann | 0cb15be | 2010-07-22 21:05:16 -0700 | [diff] [blame] | 97 | </FrameLayout> |
| 98 | |
Dmitri Plotnikov | 18ffaa2 | 2010-12-03 14:28:00 -0800 | [diff] [blame^] | 99 | <com.android.contacts.editor.TextFieldsEditorView |
Daniel Lehmann | 0cb15be | 2010-07-22 21:05:16 -0700 | [diff] [blame] | 100 | android:id="@+id/edit_name" |
| 101 | android:layout_width="match_parent" |
| 102 | android:layout_height="wrap_content" |
| 103 | android:paddingRight="?android:attr/scrollbarSize" |
| 104 | android:layout_below="@id/stub_photo" |
| 105 | android:layout_marginTop="6dip" |
| 106 | android:layout_marginBottom="4dip" /> |
| 107 | |
Dmitri Plotnikov | f491ae9 | 2010-08-16 12:18:53 -0700 | [diff] [blame] | 108 | <ViewStub android:id="@+id/aggregation_suggestion_stub" |
| 109 | android:inflatedId="@+id/aggregation_suggestion" |
| 110 | android:layout="@layout/aggregation_suggestions" |
| 111 | android:layout_width="match_parent" |
| 112 | android:layout_height="wrap_content" |
| 113 | android:visibility="visible"/> |
| 114 | |
Daniel Lehmann | 0cb15be | 2010-07-22 21:05:16 -0700 | [diff] [blame] | 115 | <LinearLayout |
| 116 | android:id="@+id/sect_fields" |
| 117 | android:layout_width="match_parent" |
| 118 | android:layout_height="wrap_content" |
| 119 | android:orientation="vertical" |
| 120 | /> |
| 121 | |
| 122 | <View |
| 123 | android:layout_width="match_parent" |
| 124 | android:layout_height="1px" |
| 125 | android:layout_alignParentBottom="true" |
| 126 | android:background="?android:attr/listDivider" |
| 127 | /> |
| 128 | |
| 129 | <Button |
| 130 | android:id="@+id/button_add_field" |
| 131 | android:text="@string/add_field" |
| 132 | android:layout_width="wrap_content" |
| 133 | android:layout_height="wrap_content" |
| 134 | android:layout_gravity="right" |
| 135 | android:layout_marginTop="10dip" |
| 136 | /> |
| 137 | </LinearLayout> |
Dmitri Plotnikov | 18ffaa2 | 2010-12-03 14:28:00 -0800 | [diff] [blame^] | 138 | </com.android.contacts.editor.RawContactEditorView> |