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<com.android.contacts.editor.RawContactEditorView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/body"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:orientation="vertical" >
23
24    <!-- There are two mutually exclusive account headers that look significantly different.
25        The editor_account_selector is used when an account needs to be chosen. -->
26    <include
27        layout="@layout/editor_account_header_expandable" />
28    <include
29        layout="@layout/editor_account_selector" />
30
31    <LinearLayout
32        android:id="@+id/collapsable_section"
33        android:layout_width="match_parent"
34        android:layout_height="wrap_content"
35        android:orientation="vertical" >
36
37        <!-- Dummy view so the first input field is not initially focused. b/21644158 -->
38        <View
39           android:layout_width="0dp"
40           android:layout_height="0dp"
41           android:focusable="true"
42           android:focusableInTouchMode="true"/>
43
44        <include
45            android:id="@+id/edit_name"
46            layout="@layout/structured_name_editor_view" />
47
48        <include
49            android:id="@+id/edit_phonetic_name"
50            layout="@layout/phonetic_name_editor_view" />
51
52        <include
53            android:id="@+id/edit_nick_name"
54            layout="@layout/nick_name_editor_view" />
55
56        <include
57            android:id="@+id/edit_photo"
58            android:layout_marginRight="8dip"
59            android:layout_marginEnd="8dip"
60            layout="@layout/item_photo_editor" />
61
62        <LinearLayout
63            android:id="@+id/sect_fields"
64            android:layout_width="match_parent"
65            android:layout_height="wrap_content"
66            android:orientation="vertical"
67            android:layout_marginBottom="16dip"/>
68
69    </LinearLayout>
70
71    <View
72        android:layout_width="match_parent"
73        android:layout_height="@dimen/divider_line_height"
74        android:background="@color/divider_line_color_light" />
75
76</com.android.contacts.editor.RawContactEditorView>
77