1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2013 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent"> 20 21 <LinearLayout 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="horizontal" 25 android:weightSum="100"> 26 27 <ImageView 28 android:id="@+id/contact_image" 29 android:layout_width="0dp" 30 android:layout_height="match_parent" 31 android:layout_weight="@integer/contact_detail_photo_percent" 32 android:scaleType="centerCrop" 33 android:src="@drawable/ic_contact_picture_180_holo_light" 34 android:contentDescription="@string/imageview_description"/> 35 36 <LinearLayout 37 android:layout_height="match_parent" 38 android:layout_width="0dp" 39 android:layout_weight="@integer/contact_detail_info_percent" 40 android:orientation="vertical"> 41 42 <TextView android:id="@+id/contact_name" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:paddingLeft="@dimen/padding" 46 android:paddingRight="@dimen/padding" 47 android:paddingTop="@dimen/padding" 48 android:visibility="gone" 49 android:textAppearance="@style/contactNameTitle"/> 50 51 <ScrollView 52 android:layout_width="match_parent" 53 android:layout_height="match_parent"> 54 55 <LinearLayout 56 android:id="@+id/contact_details_layout" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:paddingBottom="@dimen/padding" 60 android:orientation="vertical"> 61 </LinearLayout> 62 63 </ScrollView> 64 65 </LinearLayout> 66 67 </LinearLayout> 68 69 <!-- This view will be displayed when the views above are hidden. That happens when in two-pane 70 layout mode and no contact is currently selected and therefore the this fragment will 71 simply show a text message instead of contact details. --> 72 <TextView android:id="@id/android:empty" 73 android:gravity="center" 74 android:layout_width="match_parent" 75 android:layout_height="match_parent" 76 android:text="@string/no_contact_selected" 77 android:fontFamily="sans-serif-light" 78 android:visibility="gone" 79 android:textAppearance="?android:attr/textAppearanceLarge"/> 80 81</FrameLayout> 82