1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2015 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<RelativeLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/widget_message_item_outgoing" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:paddingBottom="8dp" 24 android:paddingLeft="8dip" 25 android:paddingRight="8dip" > 26 27 <FrameLayout 28 android:id="@+id/avatarFrame" 29 android:layout_gravity="top" 30 style="@style/WidgetConversationItemAvatarOutgoing" 31 android:layout_width="wrap_content" 32 android:layout_height="wrap_content"> 33 <ImageView 34 android:id="@+id/avatarShadow" 35 style="@style/WidgetConversationItemOutgoingAvatarShadow" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_centerVertical="true" 39 android:src="@drawable/ic_widget_avatar_shadow" 40 android:layout_marginTop="-4dp" 41 android:importantForAccessibility="no" 42 android:contentDescription="@null" /> 43 <ImageView 44 android:id="@+id/avatarView" 45 android:layout_width="@dimen/contact_icon_view_normal_size" 46 android:layout_height="@dimen/contact_icon_view_normal_size" 47 android:layout_centerVertical="true" 48 android:scaleType="fitXY" 49 android:importantForAccessibility="no" 50 android:contentDescription="@null" /> 51 <ImageView 52 android:id="@+id/conversation_failed_status_icon" 53 style="@style/WidgetConversationItemFailed" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:src="@drawable/ic_failed_status_red" 57 android:visibility="gone" 58 android:importantForAccessibility="no" 59 android:contentDescription="@null"/> 60 </FrameLayout> 61 62 <LinearLayout 63 android:layout_gravity="top" 64 android:orientation="vertical" 65 style="@style/WidgetConversationItemBodyOutgoing" 66 android:background="@drawable/widget_msg_bubble_outgoing" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" > 69 70 <TextView android:id="@+id/message" 71 style="@style/WidgetConversationItemWidget" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:textAppearance="?android:attr/textAppearanceSmallInverse" 75 android:textSize="16sp" 76 android:paddingTop="6dp" 77 android:paddingLeft="6dp" 78 android:paddingRight="6dp" 79 android:layout_marginBottom="3dip" 80 android:layout_alignParentBottom="true" 81 android:textColor="@color/widget_outgoing_text_color" 82 android:ellipsize="end" /> 83 84 <TextView android:id="@+id/date" 85 style="@style/WidgetConversationItemDate" 86 android:paddingLeft="6dp" 87 android:paddingRight="6dp" 88 android:layout_marginBottom="9dip" 89 android:textSize="12sp" 90 android:layout_height="wrap_content" 91 android:layout_width="wrap_content" 92 android:textAppearance="?android:attr/textAppearanceSmallInverse" 93 android:singleLine="true" 94 android:textColor="@color/timestamp_text_outgoing" /> 95 96 <FrameLayout 97 android:id="@+id/attachmentFrame" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content"> 100 <ImageView 101 android:id="@+id/attachment" 102 style="@style/WidgetConversationItemAttachment" 103 android:layout_width="wrap_content" 104 android:layout_height="wrap_content" 105 android:importantForAccessibility="no" 106 android:adjustViewBounds="true" 107 android:contentDescription="@null"/> 108 <ImageView 109 android:id="@+id/playButton" 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 android:layout_gravity="center" 113 android:visibility="gone" 114 android:src="@drawable/ic_preview_play" 115 android:importantForAccessibility="no" 116 android:contentDescription="@null"/> 117 </FrameLayout> 118 119 </LinearLayout> 120</RelativeLayout> 121