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.RawContactReadOnlyEditorView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:orientation="vertical" 22 android:paddingBottom="32dip"> 23 24 <include 25 layout="@layout/editor_account_header" /> 26 27 <LinearLayout 28 android:layout_height="wrap_content" 29 android:layout_width="match_parent" 30 android:orientation="horizontal" 31 android:paddingTop="8dip" 32 android:paddingLeft="16dip"> 33 34 <TextView android:id="@+id/read_only_name" 35 android:layout_width="0dip" 36 android:layout_height="match_parent" 37 android:layout_weight="1" 38 android:gravity="center_vertical" 39 android:singleLine="true" 40 android:ellipsize="end" 41 android:textAppearance="?android:attr/textAppearanceMedium" 42 android:textColor="?android:attr/textColorSecondary" /> 43 44 <LinearLayout 45 android:id="@+id/stub_photo" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:layout_marginRight="8dip" 49 android:orientation="horizontal"> 50 51 <include 52 android:id="@+id/edit_photo" 53 layout="@layout/item_photo_editor" /> 54 55 <ImageView 56 android:src="@drawable/account_spinner_icon" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_gravity="bottom" /> 60 61 </LinearLayout> 62 63 </LinearLayout> 64 65 <Button 66 android:id="@+id/button_edit_externally" 67 android:text="@string/edit_contact" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:layout_marginTop="13dip" 71 android:layout_marginBottom="13dip" 72 android:layout_marginLeft="13dip"/> 73 74 <LinearLayout android:id="@+id/sect_general" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:orientation="vertical"/> 78 79 </com.android.contacts.editor.RawContactReadOnlyEditorView> 80