diff options
author | Mike Dodd <mdodd@google.com> | 2015-08-11 11:16:59 -0700 |
---|---|---|
committer | Mike Dodd <mdodd@google.com> | 2015-08-12 08:58:28 -0700 |
commit | 461a34b466cb4b13dbbc2ec6330b31e217b2ac4e (patch) | |
tree | bc4b489af52d0e2521e21167d2ad76a47256f348 /res/layout/widget_message_item_outgoing.xml | |
parent | 8b3e2b9c1b0a09423a7ba5d1091b9192106502f8 (diff) | |
download | android_packages_apps_Messaging-461a34b466cb4b13dbbc2ec6330b31e217b2ac4e.tar.gz android_packages_apps_Messaging-461a34b466cb4b13dbbc2ec6330b31e217b2ac4e.tar.bz2 android_packages_apps_Messaging-461a34b466cb4b13dbbc2ec6330b31e217b2ac4e.zip |
Initial checkin of AOSP Messaging app.
b/23110861
Change-Id: I9aa980d7569247d6b2ca78f5dcb4502e1eaadb8a
Diffstat (limited to 'res/layout/widget_message_item_outgoing.xml')
-rw-r--r-- | res/layout/widget_message_item_outgoing.xml | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/res/layout/widget_message_item_outgoing.xml b/res/layout/widget_message_item_outgoing.xml new file mode 100644 index 0000000..472b5a2 --- /dev/null +++ b/res/layout/widget_message_item_outgoing.xml @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/widget_message_item_outgoing" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="8dp" + android:paddingLeft="8dip" + android:paddingRight="8dip" > + + <FrameLayout + android:id="@+id/avatarFrame" + android:layout_gravity="top" + style="@style/WidgetConversationItemAvatarOutgoing" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + <ImageView + android:id="@+id/avatarShadow" + style="@style/WidgetConversationItemOutgoingAvatarShadow" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:src="@drawable/ic_widget_avatar_shadow" + android:layout_marginTop="-4dp" + android:importantForAccessibility="no" + android:contentDescription="@null" /> + <ImageView + android:id="@+id/avatarView" + android:layout_width="@dimen/contact_icon_view_normal_size" + android:layout_height="@dimen/contact_icon_view_normal_size" + android:layout_centerVertical="true" + android:scaleType="fitXY" + android:importantForAccessibility="no" + android:contentDescription="@null" /> + <ImageView + android:id="@+id/conversation_failed_status_icon" + style="@style/WidgetConversationItemFailed" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ic_failed_status_red" + android:visibility="gone" + android:importantForAccessibility="no" + android:contentDescription="@null"/> + </FrameLayout> + + <LinearLayout + android:layout_gravity="top" + android:orientation="vertical" + style="@style/WidgetConversationItemBodyOutgoing" + android:background="@drawable/widget_msg_bubble_outgoing" + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + + <TextView android:id="@+id/message" + style="@style/WidgetConversationItemWidget" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmallInverse" + android:textSize="16sp" + android:paddingTop="6dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:layout_marginBottom="3dip" + android:layout_alignParentBottom="true" + android:textColor="@color/widget_outgoing_text_color" + android:ellipsize="end" /> + + <TextView android:id="@+id/date" + style="@style/WidgetConversationItemDate" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:layout_marginBottom="9dip" + android:textSize="12sp" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmallInverse" + android:singleLine="true" + android:textColor="@color/timestamp_text_outgoing" /> + + <FrameLayout + android:id="@+id/attachmentFrame" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + <ImageView + android:id="@+id/attachment" + style="@style/WidgetConversationItemAttachment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:importantForAccessibility="no" + android:adjustViewBounds="true" + android:contentDescription="@null"/> + <ImageView + android:id="@+id/playButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:visibility="gone" + android:src="@drawable/ic_preview_play" + android:importantForAccessibility="no" + android:contentDescription="@null"/> + </FrameLayout> + + </LinearLayout> +</RelativeLayout> |