2012-07-20 02:23:49 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<org.thoughtcrime.securesms.ConversationItem
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/conversation_item"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2014-06-12 17:22:57 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:background="?conversation_item_background" >
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2014-01-08 22:29:05 +00:00
|
|
|
<RelativeLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:orientation="horizontal"
|
2014-01-08 22:29:05 +00:00
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
android:layout_marginRight="0dp">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/indicators_parent"
|
|
|
|
android:layout_width="wrap_content"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:layout_height="match_parent"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:orientation="vertical"
|
2014-03-01 22:17:55 +00:00
|
|
|
android:gravity="left|center_vertical"
|
2014-02-15 01:10:05 +00:00
|
|
|
android:layout_marginLeft="6dp"
|
2014-03-01 22:17:55 +00:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/sms_failed_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2014-06-12 21:09:50 +00:00
|
|
|
android:src="@drawable/ic_action_warning_red"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:visibility="gone"
|
2014-03-28 02:46:27 +00:00
|
|
|
android:contentDescription="@string/conversation_item_sent__send_failed_indicator_description"/>
|
2014-03-01 22:17:55 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/pending_approval_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_dialog_info_holo_light"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_gravity="center_vertical"
|
2014-03-28 02:46:27 +00:00
|
|
|
android:contentDescription="@string/conversation_item_sent__pending_approval_description"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/conversation_item_parent"
|
2014-01-08 22:29:05 +00:00
|
|
|
android:layout_width="wrap_content"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:layout_height="match_parent"
|
2014-01-08 22:29:05 +00:00
|
|
|
android:layout_alignParentRight="true"
|
2014-02-19 20:29:00 +00:00
|
|
|
android:background="?conversation_item_sent_background"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:paddingRight="10dip"
|
2014-01-08 22:29:05 +00:00
|
|
|
android:paddingLeft="10dip"
|
2014-01-16 08:36:05 +00:00
|
|
|
android:layout_marginLeft="50dp"
|
2014-01-08 22:29:05 +00:00
|
|
|
android:layout_marginRight="12dp"
|
|
|
|
android:orientation="vertical">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2014-03-28 02:46:27 +00:00
|
|
|
<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" />
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/mms_view"
|
2014-01-08 22:29:05 +00:00
|
|
|
android:layout_width="wrap_content"
|
2013-06-26 16:07:46 +00:00
|
|
|
android:layout_height="wrap_content"
|
2014-01-16 08:36:05 +00:00
|
|
|
android:visibility="gone">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<ImageView
|
2013-04-26 18:23:43 +00:00
|
|
|
android:id="@+id/image_view"
|
|
|
|
android:layout_width="230dip"
|
|
|
|
android:layout_height="174dip"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:adjustViewBounds="true"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:visibility="gone"
|
2014-03-28 02:46:27 +00:00
|
|
|
android:contentDescription="@string/conversation_item__mms_image_description"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/play_slideshow_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/mms_play_btn"
|
|
|
|
android:layout_gravity="center"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:visibility="gone"
|
2014-03-28 02:46:27 +00:00
|
|
|
android:contentDescription="@string/conversation_item__play_button_description"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
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"
|
2012-10-29 23:51:42 +00:00
|
|
|
android:text="@string/conversation_item_sent__download"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<TextView android:id="@+id/mms_label_downloading"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:gravity="center"
|
2012-10-29 23:51:42 +00:00
|
|
|
android:text="@string/conversation_item_sent__downloading"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2014-01-08 22:29:05 +00:00
|
|
|
<LinearLayout android:layout_width="wrap_content"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:layout_height="match_parent"
|
2012-10-29 23:51:42 +00:00
|
|
|
android:orientation="horizontal"
|
2014-01-08 22:29:05 +00:00
|
|
|
android:paddingTop="0dip"
|
|
|
|
android:layout_gravity="right">
|
2012-10-29 23:51:42 +00:00
|
|
|
|
2014-11-18 01:30:29 +00:00
|
|
|
<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"
|
2014-11-19 20:46:59 +00:00
|
|
|
android:textSize="@dimen/conversation_item_date_text_size"
|
2014-11-18 01:30:29 +00:00
|
|
|
android:paddingTop="1dip"
|
|
|
|
android:paddingBottom="5dp" />
|
|
|
|
|
2014-11-19 20:46:59 +00:00
|
|
|
<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" />
|
|
|
|
|
2012-10-29 23:51:42 +00:00
|
|
|
</LinearLayout>
|
2012-07-20 02:23:49 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
2014-02-23 21:59:12 +00:00
|
|
|
<View android:id="@+id/triangle_tick"
|
2014-11-18 01:30:29 +00:00
|
|
|
android:layout_width="12dp"
|
|
|
|
android:layout_height="15dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:background="?conversation_item_sent_triangle_background" />
|
2014-01-08 22:29:05 +00:00
|
|
|
|
2014-03-01 22:17:55 +00:00
|
|
|
<TextView android:id="@+id/indicator_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/conversation_item_parent"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:paddingRight="5dip"
|
|
|
|
android:paddingLeft="5dip"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:layout_marginLeft="50dp"
|
|
|
|
android:layout_marginRight="15dp"
|
|
|
|
android:layout_marginTop="-2dp"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:textColor="?conversation_sent_text_secondary_color"
|
|
|
|
android:background="?conversation_item_sent_indicator_text_background"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2012-07-20 02:23:49 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
</org.thoughtcrime.securesms.ConversationItem>
|