blob: 62d904f824d8909588de5a38ea9699e41842eb40 [file] [log] [blame]
Jeff Sharkey2ae666e2009-07-21 19:30:57 -07001<?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 Parekh450b88f2009-09-22 12:01:39 -07007
Jeff Sharkey2ae666e2009-07-21 19:30:57 -07008 http://www.apache.org/licenses/LICENSE-2.0
Neel Parekh450b88f2009-09-22 12:01:39 -07009
Jeff Sharkey2ae666e2009-07-21 19:30:57 -070010 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 Plotnikov18ffaa22010-12-03 14:28:00 -080017<com.android.contacts.editor.RawContactEditorView
Jeff Sharkey2ae666e2009-07-21 19:30:57 -070018 xmlns:android="http://schemas.android.com/apk/res/android"
Romain Guy6304c0b2010-01-08 15:06:49 -080019 android:layout_width="match_parent"
Jeff Hamilton5297c6a2009-10-01 02:22:33 -070020 android:layout_height="wrap_content"
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020021 android:orientation="vertical"
Jeff Hamilton5297c6a2009-10-01 02:22:33 -070022>
Jeff Sharkey2ae666e2009-07-21 19:30:57 -070023
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020024 <!-- Account info header -->
25 <RelativeLayout android:id="@+id/header"
26 android:layout_height="64dip"
27 android:layout_width="match_parent"
Daniel Lehmann0cb15be2010-07-22 21:05:16 -070028 android:background="@android:drawable/list_selector_background"
Jeff Hamilton5297c6a2009-10-01 02:22:33 -070029 >
Jeff Sharkey2ae666e2009-07-21 19:30:57 -070030
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020031 <ImageView android:id="@+id/header_color_bar"
Romain Guy6304c0b2010-01-08 15:06:49 -080032 android:layout_width="match_parent"
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020033 android:layout_height="4dip"
34 android:layout_marginBottom="5dip"
35 android:background="@color/edit_divider"
36 />
Jeff Hamilton5297c6a2009-10-01 02:22:33 -070037
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020038 <ImageView android:id="@+id/header_icon"
39 android:layout_width="wrap_content"
Jeff Hamilton1fb62752009-10-07 04:40:27 -050040 android:layout_height="wrap_content"
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020041 android:layout_marginLeft="7dip"
42 android:layout_marginRight="7dip"
43 android:layout_centerVertical="true"
44 android:layout_below="@id/header_color_bar"
45 />
Jeff Hamilton5297c6a2009-10-01 02:22:33 -070046
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020047 <TextView android:id="@+id/header_account_type"
48 android:layout_width="wrap_content"
Jeff Hamilton5297c6a2009-10-01 02:22:33 -070049 android:layout_height="wrap_content"
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020050 android:layout_toRightOf="@+id/header_icon"
51 android:layout_alignTop="@id/header_icon"
52 android:layout_marginTop="-4dip"
Jeff Sharkeyaad88482009-08-29 18:19:20 -070053
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020054 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 Hamilton5297c6a2009-10-01 02:22:33 -070061 android:layout_height="wrap_content"
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020062 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 Hamilton5297c6a2009-10-01 02:22:33 -070069 />
Jeff Sharkeyaad88482009-08-29 18:19:20 -070070
Daniel Lehmannbb556952010-05-14 15:03:45 -070071 <View
Romain Guy6304c0b2010-01-08 15:06:49 -080072 android:layout_width="match_parent"
Jeff Hamilton753b74f2009-10-08 19:46:26 -050073 android:layout_height="1px"
Daniel Lehmannbb556952010-05-14 15:03:45 -070074 android:layout_alignParentBottom="true"
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020075
Daniel Lehmannbb556952010-05-14 15:03:45 -070076 android:background="?android:attr/listDivider"
Jeff Hamilton1fb62752009-10-07 04:40:27 -050077 />
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020078 </RelativeLayout>
79
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020080 <LinearLayout
Daniel Lehmann0cb15be2010-07-22 21:05:16 -070081 android:id="@+id/body"
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020082 android:layout_width="match_parent"
83 android:layout_height="wrap_content"
Daniel Lehmann0cb15be2010-07-22 21:05:16 -070084 android:orientation="vertical">
Daniel Lehmannf3eb02e2010-07-01 13:17:29 +020085
Daniel Lehmann0cb15be2010-07-22 21:05:16 -070086 <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 Lehmannf3eb02e2010-07-01 13:17:29 +020092
Daniel Lehmann0cb15be2010-07-22 21:05:16 -070093 <include
94 android:id="@+id/edit_photo"
95 layout="@layout/item_photo_editor" />
Jeff Sharkey2ae666e2009-07-21 19:30:57 -070096
Daniel Lehmann0cb15be2010-07-22 21:05:16 -070097 </FrameLayout>
98
Dmitri Plotnikov18ffaa22010-12-03 14:28:00 -080099 <com.android.contacts.editor.TextFieldsEditorView
Daniel Lehmann0cb15be2010-07-22 21:05:16 -0700100 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 Plotnikovf491ae92010-08-16 12:18:53 -0700108 <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 Lehmann0cb15be2010-07-22 21:05:16 -0700115 <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 Plotnikov18ffaa22010-12-03 14:28:00 -0800138</com.android.contacts.editor.RawContactEditorView>