1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4 * Copyright 2009, The Android Open Source Project 5 * 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 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 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. 17 */ 18--> 19 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:minHeight="?android:attr/listPreferredItemHeight" 24 android:orientation="horizontal" 25 android:paddingLeft="9dip" 26 android:gravity="center_vertical" 27> 28 29 <LinearLayout 30 android:layout_width="0dip" 31 android:layout_height="wrap_content" 32 android:layout_weight="1" 33 android:layout_marginLeft="5dip" 34 android:orientation="vertical" 35 android:paddingTop="5dip" 36 android:paddingBottom="7dip" 37 android:gravity="center_vertical" 38 > 39 40 <TextView android:id="@android:id/text1" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:textAppearance="?android:attr/textAppearanceLarge" 44 /> 45 46 <LinearLayout 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:orientation="horizontal" 50 > 51 52 <TextView android:id="@android:id/text2" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:layout_gravity="center_vertical" 56 android:textAppearance="?android:attr/textAppearanceSmall" 57 /> 58 59 <ImageView android:id="@+id/primary_icon" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:layout_gravity="center_vertical" 63 android:paddingLeft="3dip" 64 android:src="@drawable/ic_default_number" 65 /> 66 67 </LinearLayout> 68 69 <TextView 70 android:id="@+id/footer" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_gravity="center_vertical" 74 android:textAppearance="?android:attr/textAppearanceSmall" 75 android:visibility="gone" /> 76 77 </LinearLayout> 78 79 <ImageView android:id="@+id/presence_icon" 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" 82 android:layout_marginLeft="5dip" 83 android:gravity="center" 84 android:scaleType="centerInside" 85 /> 86 87 <ImageView android:id="@+id/action_icon" 88 android:layout_width="30dip" 89 android:layout_height="30dip" 90 android:layout_marginLeft="14dip" 91 android:layout_marginRight="14dip" 92 android:gravity="center" 93 android:scaleType="centerInside" 94 /> 95 96 <View android:id="@+id/divider" 97 android:layout_width="1px" 98 android:layout_height="match_parent" 99 android:layout_marginTop="5dip" 100 android:layout_marginBottom="5dip" 101 android:background="@drawable/divider_vertical_dark" 102 /> 103 104 <ImageView android:id="@+id/secondary_action_button" 105 android:layout_width="wrap_content" 106 android:layout_height="match_parent" 107 android:layout_centerVertical="true" 108 android:paddingLeft="14dip" 109 android:paddingRight="14dip" 110 android:gravity="center" 111 android:scaleType="center" 112 android:background="@android:drawable/list_selector_background" 113 /> 114 115</LinearLayout> 116