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 23 <include 24 layout="@layout/editor_account_header_expandable" /> 25 26 <LinearLayout 27 android:id="@+id/collapsable_section" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:orientation="vertical" > 31 32 <!-- Want 16dp of apparent top padding. Since TextView has 4dp of inset/padding built in, 33 only set marginTop=12dp. --> 34 <LinearLayout 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:layout_marginBottom="@dimen/editor_padding_around_read_only_photo_editor" 38 android:layout_marginTop="12dp" 39 android:orientation="horizontal"> 40 41 <ImageView 42 android:id="@+id/kind_icon" 43 android:layout_marginTop="2dp" 44 android:src="@drawable/ic_person_black_24dp" 45 android:contentDescription="@string/header_name_entry" 46 style="@style/EditKindIconStyle" /> 47 48 <TextView 49 android:id="@+id/read_only_name" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:layout_marginRight="@dimen/editor_delete_button_width" 53 android:layout_marginEnd="@dimen/editor_delete_button_width" 54 android:singleLine="true" 55 android:textSize="@dimen/editor_form_text_size" 56 android:textColor="?android:attr/textColorSecondary" 57 android:textAlignment="viewStart" 58 android:enabled="false"/> 59 60 </LinearLayout> 61 62 <include 63 android:id="@+id/edit_photo" 64 layout="@layout/item_photo_editor_readonly" /> 65 66 <Button 67 android:id="@+id/button_edit_externally" 68 android:text="@string/edit_contact" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:layout_marginTop="4dp" 72 android:layout_marginBottom="@dimen/editor_padding_below_photo" 73 android:layout_marginEnd="13dip" 74 android:layout_marginStart="13dip"/> 75 76 <LinearLayout android:id="@+id/sect_general" 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:orientation="vertical"/> 80 81 </LinearLayout> 82 83 <View 84 android:layout_width="match_parent" 85 android:layout_height="@dimen/divider_line_height" 86 android:background="@color/divider_line_color_light" /> 87 88</com.android.contacts.editor.RawContactReadOnlyEditorView> 89