2015-01-30 06:37:01 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<View android:id="@+id/triangle_tick"
|
|
|
|
android:layout_width="12dp"
|
|
|
|
android:layout_height="15dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_marginTop="12dp" />
|
|
|
|
|
2015-03-17 21:01:37 +00:00
|
|
|
<LinearLayout android:id="@+id/thumbnail_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_toLeftOf="@id/triangle_tick"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2015-03-31 22:44:41 +00:00
|
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
2015-01-30 06:37:01 +00:00
|
|
|
android:id="@+id/image_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/media_bubble_height"
|
|
|
|
android:layout_marginLeft="@dimen/message_bubble_end_padding"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:contentDescription="@string/conversation_item__mms_image_description"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:riv_corner_radius="@dimen/message_bubble_corner_radius"
|
|
|
|
app:riv_border_width="@dimen/media_bubble_border_width"
|
|
|
|
tools:src="@drawable/ic_video_light"
|
|
|
|
tools:visibility="visible" />
|
2015-03-17 21:01:37 +00:00
|
|
|
</LinearLayout>
|
2015-01-30 06:37:01 +00:00
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/body_bubble"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-03-17 21:01:37 +00:00
|
|
|
android:layout_below="@id/thumbnail_container"
|
2015-01-30 06:37:01 +00:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:paddingRight="10dip"
|
|
|
|
android:paddingLeft="10dip"
|
|
|
|
android:layout_marginLeft="50dp"
|
|
|
|
android:layout_marginRight="12dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView android:id="@+id/conversation_item_body"
|
|
|
|
android:autoLink="all"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="5dip"
|
|
|
|
android:linksClickable="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?conversation_sent_text_primary_color"
|
|
|
|
android:textColorLink="?conversation_sent_text_primary_color"
|
|
|
|
android:textSize="16sp"
|
|
|
|
tools:text="Mango pickle lorem ipsum" />
|
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/mms_download_controls"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<Button android:id="@+id/mms_download_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:text="@string/conversation_item_sent__download"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<TextView android:id="@+id/mms_label_downloading"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/conversation_item_sent__downloading"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="0dip"
|
|
|
|
android:layout_gravity="right">
|
|
|
|
|
|
|
|
<TextView android:id="@+id/group_message_status"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:linksClickable="false"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:textColor="?conversation_sent_text_secondary_color"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginRight="8dip"
|
|
|
|
android:paddingTop="1dip" />
|
|
|
|
|
|
|
|
<TextView android:id="@+id/conversation_item_date"
|
|
|
|
android:autoLink="none"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="15sp"
|
|
|
|
android:linksClickable="false"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:textColor="?conversation_sent_text_secondary_color"
|
|
|
|
android:textSize="@dimen/conversation_item_date_text_size"
|
|
|
|
android:paddingTop="1dip"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
tools:text="30 mins" />
|
|
|
|
|
|
|
|
<ImageView android:id="@+id/delivered_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:src="?conversation_delivery_delivered"
|
|
|
|
android:paddingLeft="2dp"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="@string/conversation_item_sent__delivered_description" />
|
|
|
|
|
|
|
|
<ImageView android:id="@+id/sms_secure_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="?menu_lock_icon_small"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:paddingLeft="2dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:contentDescription="@string/conversation_item__secure_message_description" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|