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="14dip"
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 <TextView android:id="@+id/label"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:layout_alignParentLeft="true"
42 android:layout_alignParentBottom="true"
43 android:layout_marginBottom="8dip"
44 android:layout_marginTop="-8dip"
46 android:singleLine="true"
47 android:ellipsize="marquee"
48 android:textAppearance="?android:attr/textAppearanceSmall"
49 android:textStyle="bold"
52 <TextView android:id="@+id/number"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_marginLeft="5dip"
56 android:layout_toRightOf="@id/label"
57 android:layout_alignBaseline="@id/label"
58 android:layout_toLeftOf="@id/presence"
59 android:layout_alignWithParentIfMissing="true"
61 android:singleLine="true"
62 android:ellipsize="marquee"
63 android:textAppearance="?android:attr/textAppearanceSmall"
66 <TextView android:id="@+id/name"
67 android:layout_width="0dip"
68 android:layout_height="0dip"
69 android:layout_above="@id/label"
70 android:layout_alignWithParentIfMissing="true"
71 android:layout_alignParentTop="true"
72 android:layout_alignParentLeft="true"
73 android:layout_toLeftOf="@id/presence"
74 android:layout_marginBottom="1dip"
76 android:singleLine="true"
77 android:ellipsize="marquee"
78 android:gravity="center_vertical|left"
79 android:textAppearance="?android:attr/textAppearanceLarge"