1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4 * Copyright (C) 2009 Esmertec AG. 5 * Copyright (C) 2009 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:background="@drawable/dashboard_highlight" 22 android:layout_gravity="center_horizontal" 23 android:layout_width="92dip" 24 android:layout_height="fill_parent"> 25 26 <!-- avatar --> 27 <ImageView android:id="@+id/avatar" 28 android:background="@drawable/im_avatar_picture_border_normal" 29 android:scaleType="centerCrop" 30 android:layout_marginLeft="4dip" 31 android:layout_marginTop="5dip" 32 android:layout_width="58dip" 33 android:layout_height="58dip" 34 android:layout_alignParentLeft="true" 35 android:layout_alignParentTop="true" /> 36 37 <ImageView android:id="@+id/presence" 38 android:scaleType="centerCrop" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_alignBottom="@id/avatar" 42 android:layout_toRightOf="@id/avatar" /> 43 44 <TextView android:id="@+id/name" 45 android:layout_marginTop="3dip" 46 android:inputType="none" 47 android:maxLines="1" 48 android:ellipsize="end" 49 android:typeface="sans" 50 android:textSize="14dip" 51 android:textColor="#ffffffff" 52 android:layout_alignParentLeft="true" 53 android:layout_below="@id/avatar" 54 android:layout_marginLeft="7dip" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" /> 57 58 <TextView android:id="@+id/when" 59 android:inputType="none" 60 android:maxLines="1" 61 android:ellipsize="end" 62 android:typeface="sans" 63 android:textSize="11dip" 64 android:textColor="#ffffffff" 65 android:layout_alignParentLeft="true" 66 android:layout_below="@id/name" 67 android:layout_marginLeft="7dip" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" /> 70 71 <TextView android:id="@+id/shortcut" 72 android:inputType="none" 73 android:typeface="sans" 74 android:textSize="11dip" 75 android:textColor="#ffffffff" 76 android:maxLines="1" 77 android:layout_alignParentLeft="true" 78 android:layout_below="@id/name" 79 android:layout_marginLeft="7dip" 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" /> 82 83</RelativeLayout> 84 85