1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4 * Copyright (C) 2007-2008 Esmertec AG. 5 * Copyright (C) 2007-2008 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19--> 20 21<view xmlns:android="http://schemas.android.com/apk/res/android" 22 class="com.android.im.app.ContactView" 23 android:orientation="horizontal" 24 android:layout_width="fill_parent" 25 android:layout_height="?android:attr/listPreferredItemHeight" 26 android:paddingTop="2dip" 27 android:paddingBottom="2dip" 28 android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft" 29 android:paddingRight="9dip"> 30 31 <RelativeLayout 32 android:id="@+id/contactInfo" 33 android:layout_width="0dip" 34 android:layout_height="fill_parent" 35 android:layout_weight="1" 36 android:layout_marginRight="5dip" 37 android:paddingLeft="6dip"> 38 39 <ImageView 40 android:id="@+id/presence" 41 android:scaleType="fitXY" 42 android:layout_centerVertical="true" 43 android:layout_alignParentRight="true" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:paddingRight="6dip"> 47 </ImageView> 48 49 <LinearLayout 50 android:orientation="vertical" 51 android:layout_width="fill_parent" 52 android:layout_height="wrap_content" 53 android:layout_toLeftOf="@id/presence" 54 android:layout_centerVertical="true"> 55 56 <LinearLayout android:orientation="horizontal" 57 android:layout_width="fill_parent" 58 android:layout_height="wrap_content"> 59 60 <TextView android:id="@+id/line1" 61 android:singleLine="true" 62 android:layout_width="0dip" 63 android:layout_weight="1" 64 android:layout_height="wrap_content" 65 android:textStyle="bold" 66 android:textAppearance="?android:attr/textAppearanceMedium" 67 android:ellipsize="marquee" /> 68 69 <TextView android:id="@+id/timestamp" 70 android:singleLine="true" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:paddingRight="8dip" 74 android:visibility="gone" 75 android:textAppearance="?android:attr/textAppearanceSmall"/> 76 </LinearLayout> 77 78 <TextView android:id="@+id/line2" 79 android:singleLine="true" 80 android:layout_width="fill_parent" 81 android:layout_height="wrap_content" 82 android:textAppearance="?android:attr/textAppearanceSmall" 83 android:ellipsize="marquee"/> 84 </LinearLayout> 85 </RelativeLayout> 86</view> 87