1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright (C) 2008 Esmertec AG. 5 * Copyright (C) 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 <com.android.mms.ui.MessageListItem 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:id="@+id/msg_list_item_recv" 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:background="#00000000" 27 android:orientation="horizontal"> 28 29 <LinearLayout android:id="@+id/mms_layout_view_parent" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:layout_weight="1" 33 android:orientation="vertical" > 34 35 <RelativeLayout 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content"> 38 39 <view xmlns:android="http://schemas.android.com/apk/res/android" 40 class="com.android.mms.ui.QuickContactDivot" 41 android:id="@+id/avatar" 42 position="right_upper" 43 android:layout_alignParentLeft="true" 44 android:layout_width="@dimen/avatar_width_height" 45 android:layout_height="@dimen/avatar_width_height" /> 46 47 <LinearLayout 48 android:id="@+id/message_block" 49 android:minHeight="@dimen/avatar_width_height" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:layout_toRightOf="@id/avatar" 53 android:layout_alignParentRight="true" 54 android:background="@drawable/listitem_background" 55 android:orientation="vertical" > 56 57 <TextView android:id="@+id/text_view" 58 android:autoLink="all" 59 android:paddingLeft="@dimen/message_item_text_padding_left_right" 60 android:paddingRight="@dimen/message_item_text_padding_left_right" 61 android:paddingTop="@dimen/message_item_text_padding_top" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:linksClickable="false" 65 android:textAppearance="?android:attr/textAppearanceSmall" 66 android:textColor="#ff000000" 67 android:textSize="16sp" /> 68 69 <LinearLayout 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:layout_marginBottom="8dip" 73 android:orientation="horizontal" > 74 75 <TextView android:id="@+id/date_view" 76 android:background="@drawable/listitem_background" 77 android:paddingLeft="@dimen/message_item_text_padding_left_right" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:paddingRight="3dip" 81 android:textAppearance="?android:attr/textAppearanceSmall" 82 android:textColor="@color/text_hairline" /> 83 84 <ImageView 85 android:id="@+id/locked_indicator" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:src="@drawable/ic_lock_message_sms" 89 android:paddingRight="3dip" 90 android:visibility="gone" /> 91 92 <ImageView 93 android:id="@+id/delivered_indicator" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:src="@drawable/ic_sms_mms_delivered" 97 android:paddingRight="3dip" 98 android:visibility="gone" /> 99 100 <ImageView 101 android:id="@+id/details_indicator" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:src="@drawable/ic_sms_mms_details" 105 android:visibility="gone" /> 106 </LinearLayout> 107 108 <ViewStub android:id="@+id/mms_layout_view_stub" 109 android:layout="@layout/mms_layout_view" 110 android:layout_width="match_parent" 111 android:layout_height="wrap_content"/> 112 </LinearLayout> 113 </RelativeLayout> 114 </LinearLayout> 115 116 <ViewStub android:id="@+id/mms_downloading_view_stub" 117 android:layout="@layout/mms_downloading_view" 118 android:layout_gravity="center_vertical" 119 android:layout_width="wrap_content" 120 android:layout_height="wrap_content"/> 121 122 </com.android.mms.ui.MessageListItem> 123