1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 <merge 17 xmlns:android="http://schemas.android.com/apk/res/android"> 18 <RelativeLayout 19 android:id="@+id/photo_container" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:gravity="center_vertical"> 23 <ImageView 24 android:id="@+id/photo" 25 android:layout_width="match_parent" 26 android:layout_height="match_parent" 27 android:scaleType="centerCrop" 28 android:clickable="true" 29 android:contentDescription="@string/description_contact_photo" /> 30 <View 31 android:layout_width="match_parent" 32 android:layout_height="1dip" 33 android:layout_alignParentTop="true" 34 android:background="#4CFFFFFF" /> 35 <View 36 android:id="@+id/photo_text_bar" 37 android:layout_width="0dip" 38 android:layout_height="42dip" 39 android:layout_alignBottom="@id/photo" 40 android:layout_alignLeft="@id/photo" 41 android:layout_alignRight="@id/photo" 42 android:layout_alignStart="@id/photo" 43 android:layout_alignEnd="@id/photo" 44 android:background="@color/quickcontact_name_detail_background" /> 45 <ImageView 46 android:id="@+id/contact_details_image" 47 android:src="@drawable/ic_contacts_holo_dark" 48 android:layout_height="wrap_content" 49 android:layout_width="wrap_content" 50 android:layout_marginRight="16dip" 51 android:layout_marginEnd="16dip" 52 android:layout_marginBottom="5dip" 53 android:layout_alignBottom="@id/photo_text_bar" 54 android:layout_alignRight="@id/photo_text_bar" 55 android:layout_alignEnd="@id/photo_text_bar" 56 android:clickable="true" 57 android:contentDescription="@string/viewContactDesription" /> 58 <ImageView 59 android:id="@+id/quickcontact_star_button" 60 android:src="@drawable/ic_favorite_off_lt" 61 android:layout_height="wrap_content" 62 android:layout_width="wrap_content" 63 android:layout_marginBottom="5dip" 64 android:layout_marginRight="16dip" 65 android:layout_marginEnd="16dip" 66 android:layout_alignBottom="@id/photo_text_bar" 67 android:layout_toLeftOf="@id/contact_details_image" 68 android:layout_toStartOf="@id/contact_details_image" 69 android:clickable="true" 70 android:contentDescription="@string/menu_addStar" /> 71 <TextView 72 android:id="@+id/name" 73 android:layout_width="match_parent" 74 android:layout_height="42dip" 75 android:layout_alignBottom="@id/photo" 76 android:layout_alignLeft="@id/photo" 77 android:layout_alignStart="@id/photo" 78 android:layout_toLeftOf="@id/quickcontact_star_button" 79 android:layout_toStartOf="@id/quickcontact_star_button" 80 android:gravity="center_vertical" 81 android:paddingLeft="8dip" 82 android:paddingStart="8dip" 83 android:singleLine="true" 84 android:ellipsize="end" 85 android:textColor="@android:color/white" 86 android:textAppearance="?android:attr/textAppearanceMedium" /> 87 </RelativeLayout> 88 </merge> 89