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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="?android:attr/listPreferredItemHeight" 20 android:paddingLeft="7dip" 21 > 22 23 <com.android.contacts.ui.widget.DontPressWithParentImageView android:id="@+id/call_icon" 24 android:layout_width="wrap_content" 25 android:layout_height="match_parent" 26 android:paddingLeft="14dip" 27 android:paddingRight="14dip" 28 android:layout_alignParentRight="true" 29 30 android:gravity="center_vertical" 31 android:src="@android:drawable/sym_action_call" 32 android:background="@drawable/call_background" 33 /> 34 35 <View android:id="@+id/divider" 36 android:layout_width="1px" 37 android:layout_height="match_parent" 38 android:layout_marginTop="5dip" 39 android:layout_marginBottom="5dip" 40 android:layout_toLeftOf="@id/call_icon" 41 android:layout_marginLeft="11dip" 42 android:background="@drawable/divider_vertical_dark" 43 /> 44 45 <TextView android:id="@+id/date" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:layout_toLeftOf="@id/divider" 49 android:layout_alignParentBottom="true" 50 android:layout_marginBottom="8dip" 51 android:layout_marginLeft="10dip" 52 53 android:textAppearance="?android:attr/textAppearanceSmall" 54 android:singleLine="true" 55 /> 56 57 <TextView android:id="@+id/label" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_alignParentLeft="true" 61 android:layout_alignParentBottom="true" 62 android:layout_marginLeft="36dip" 63 android:layout_alignBaseline="@id/date" 64 65 android:singleLine="true" 66 android:ellipsize="marquee" 67 android:textAppearance="?android:attr/textAppearanceSmall" 68 android:textStyle="bold" 69 /> 70 71 <TextView android:id="@+id/number" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:layout_marginLeft="5dip" 75 android:layout_toRightOf="@id/label" 76 android:layout_toLeftOf="@id/date" 77 android:layout_alignBaseline="@id/label" 78 android:layout_alignWithParentIfMissing="true" 79 80 android:singleLine="true" 81 android:ellipsize="marquee" 82 android:textAppearance="?android:attr/textAppearanceSmall" 83 /> 84 85 <TextView android:id="@+id/groupSize" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:layout_alignParentTop="true" 89 android:layout_toLeftOf="@id/divider" 90 android:layout_above="@id/date" 91 android:layout_alignWithParentIfMissing="true" 92 android:layout_marginBottom="-10dip" 93 94 android:textAppearance="?android:attr/textAppearanceLarge" 95 android:singleLine="true" 96 android:gravity="center_vertical" 97 /> 98 99 <TextView android:id="@+id/line1" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:layout_alignParentLeft="true" 103 android:layout_alignParentTop="true" 104 android:layout_toLeftOf="@+id/groupSize" 105 android:layout_above="@id/date" 106 android:layout_alignWithParentIfMissing="true" 107 android:layout_marginLeft="36dip" 108 android:layout_marginBottom="-10dip" 109 110 android:textAppearance="?android:attr/textAppearanceLarge" 111 android:singleLine="true" 112 android:ellipsize="marquee" 113 android:gravity="center_vertical" 114 /> 115 116 <ImageView 117 android:id="@+id/groupIndicator" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:layout_alignParentLeft="true" 121 android:layout_centerVertical="true" 122 android:src="@*android:drawable/expander_ic_minimized" 123 android:gravity="center_vertical" 124 /> 125 </RelativeLayout> 126