1 <?xml version="1.0" encoding="utf-8"?>
4 * Copyright 2009, The Android Open Source Project
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="fill_parent"
22 android:layout_height="?android:attr/listPreferredItemHeight"
23 android:paddingLeft="5dip"
24 android:paddingRight="5dip"
27 <ImageView android:id="@+id/presence"
28 android:layout_width="32dip"
29 android:layout_height="32dip"
30 android:layout_alignParentRight="true"
31 android:layout_marginLeft="5dip"
32 android:layout_centerVertical="true"
34 android:gravity="center"
35 android:scaleType="centerInside"
38 <ImageView android:id="@+id/photo"
39 android:layout_width="54dip"
40 android:layout_height="54dip"
41 android:layout_alignParentLeft="true"
42 android:layout_centerVertical="true"
43 android:layout_marginRight="8dip"
45 android:gravity="center"
46 android:scaleType="fitCenter"
47 android:background="@drawable/contact_picture_border_in_list"
50 <TextView android:id="@+id/label"
51 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:layout_toRightOf="@id/photo"
54 android:layout_alignParentBottom="true"
55 android:layout_marginBottom="8dip"
56 android:layout_marginTop="-10dip"
58 android:singleLine="true"
59 android:ellipsize="marquee"
60 android:textAppearance="?android:attr/textAppearanceSmall"
61 android:textStyle="bold"
64 <TextView android:id="@+id/number"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:layout_marginLeft="5dip"
68 android:layout_toRightOf="@id/label"
69 android:layout_toLeftOf="@id/presence"
70 android:layout_alignBaseline="@id/label"
71 android:layout_alignWithParentIfMissing="true"
73 android:singleLine="true"
74 android:ellipsize="marquee"
75 android:textAppearance="?android:attr/textAppearanceSmall"
78 <TextView android:id="@+id/name"
79 android:layout_width="0dip"
80 android:layout_height="0dip"
81 android:layout_toRightOf="@id/photo"
82 android:layout_toLeftOf="@id/presence"
83 android:layout_alignParentTop="true"
84 android:layout_above="@id/label"
85 android:layout_alignWithParentIfMissing="true"
87 android:singleLine="true"
88 android:ellipsize="marquee"
89 android:gravity="center_vertical|left"
90 android:textAppearance="?android:attr/textAppearanceLarge"