2012-07-19 19:23:49 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<org.thoughtcrime.securesms.ConversationItem
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-01-15 13:35:35 -08:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2015-01-29 20:37:01 -10:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:id="@+id/conversation_item"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2014-06-12 19:22:57 +02:00
|
|
|
android:orientation="horizontal"
|
2015-01-23 10:59:22 -10:00
|
|
|
android:background="?conversation_item_background">
|
2012-07-19 19:23:49 -07:00
|
|
|
|
2014-01-08 12:29:05 -10:00
|
|
|
<RelativeLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
android:layout_marginRight="0dp">
|
2012-07-19 19:23:49 -07:00
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/indicators_parent"
|
|
|
|
android:layout_width="wrap_content"
|
2015-01-15 13:35:35 -08:00
|
|
|
android:layout_height="wrap_content"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:orientation="vertical"
|
2014-03-01 14:17:55 -08:00
|
|
|
android:gravity="left|center_vertical"
|
2014-02-14 17:10:05 -08:00
|
|
|
android:layout_marginLeft="6dp"
|
2014-03-01 14:17:55 -08:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true">
|
2012-07-19 19:23:49 -07:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/sms_failed_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-01-15 13:35:35 -08:00
|
|
|
android:src="@drawable/ic_error_red_24dp"
|
|
|
|
tools:visibility="visible"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:visibility="gone"
|
2015-01-15 13:35:35 -08:00
|
|
|
android:contentDescription="@string/conversation_item_sent__send_failed_indicator_description" />
|
2014-03-01 14:17:55 -08:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/pending_approval_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-01-15 13:35:35 -08:00
|
|
|
android:src="@drawable/ic_info_outline_grey600_24dp"
|
2014-03-01 14:17:55 -08:00
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_gravity="center_vertical"
|
2015-01-15 13:35:35 -08:00
|
|
|
android:contentDescription="@string/conversation_item_sent__pending_approval_description"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2012-07-19 19:23:49 -07:00
|
|
|
</LinearLayout>
|
|
|
|
|
2015-06-29 08:49:32 -07:00
|
|
|
<LinearLayout android:id="@+id/body_bubble"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_marginLeft="50dp"
|
2015-06-29 14:38:52 -07:00
|
|
|
android:layout_marginRight="5dp"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:background="@drawable/sent_bubble"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
|
|
|
android:id="@+id/image_view"
|
2015-06-29 14:38:52 -07:00
|
|
|
android:layout_width="@dimen/media_bubble_height"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:layout_height="@dimen/media_bubble_height"
|
2015-06-29 14:38:52 -07:00
|
|
|
android:layout_marginBottom="5dp"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:contentDescription="@string/conversation_item__mms_image_description"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_video_light"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/conversation_item_body"
|
|
|
|
android:autoLink="all"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-29 14:38:52 -07:00
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:linksClickable="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?conversation_item_sent_text_primary_color"
|
|
|
|
android:textColorLink="?conversation_item_sent_text_primary_color"
|
2015-07-10 14:58:05 -07:00
|
|
|
android:textSize="@dimen/conversation_item_body_text_size"
|
2015-06-29 08:49:32 -07:00
|
|
|
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"
|
2015-06-29 14:38:52 -07:00
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
2015-06-29 08:49:32 -07:00
|
|
|
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_item_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_item_sent_text_secondary_color"
|
|
|
|
android:textSize="@dimen/conversation_item_date_text_size"
|
|
|
|
android:paddingTop="1dip"
|
2015-06-29 16:03:02 -07:00
|
|
|
android:paddingBottom="2dp"
|
2015-06-29 08:49:32 -07:00
|
|
|
tools:text="30 mins" />
|
|
|
|
|
|
|
|
<FrameLayout android:id="@+id/pending_indicator_stub"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
<ImageView android:id="@+id/sent_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
2015-06-29 15:33:36 -07:00
|
|
|
android:src="@drawable/ic_done_white_18dp"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:paddingLeft="2dp"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:visibility="gone"
|
2015-06-29 15:33:36 -07:00
|
|
|
android:tint="?conversation_item_sent_text_secondary_color"
|
|
|
|
android:tintMode="multiply"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:contentDescription="@string/conversation_item_sent__delivered_description" />
|
|
|
|
|
|
|
|
<ImageView android:id="@+id/delivered_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
2015-06-29 15:33:36 -07:00
|
|
|
android:src="@drawable/ic_done_all_white_18dp"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:paddingLeft="2dp"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:visibility="gone"
|
2015-06-29 15:33:36 -07:00
|
|
|
android:tint="?conversation_item_sent_text_secondary_color"
|
|
|
|
android:tintMode="multiply"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:contentDescription="@string/conversation_item_sent__delivered_description" />
|
|
|
|
|
|
|
|
<ImageView android:id="@+id/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"
|
2015-06-29 15:33:36 -07:00
|
|
|
android:tint="?conversation_item_sent_text_secondary_color"
|
|
|
|
android:tintMode="multiply"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:contentDescription="@string/conversation_item__secure_message_description" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2014-01-08 12:29:05 -10:00
|
|
|
|
2014-03-01 14:17:55 -08:00
|
|
|
<TextView android:id="@+id/indicator_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:layout_below="@id/body_bubble"
|
2014-03-01 14:17:55 -08:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:paddingRight="5dip"
|
|
|
|
android:paddingLeft="5dip"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:layout_marginLeft="50dp"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:layout_marginRight="22dp"
|
2015-06-29 16:03:02 -07:00
|
|
|
android:layout_marginTop="-3dp"
|
2014-03-01 14:17:55 -08:00
|
|
|
android:textSize="12sp"
|
2015-06-29 08:49:32 -07:00
|
|
|
android:textColor="?conversation_item_sent_text_indicator_tab_color"
|
2014-03-01 14:17:55 -08:00
|
|
|
android:background="?conversation_item_sent_indicator_text_background"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2012-07-19 19:23:49 -07:00
|
|
|
</RelativeLayout>
|
|
|
|
</org.thoughtcrime.securesms.ConversationItem>
|