2012-07-19 19:23:49 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2014-02-15 04:21:56 -08:00
|
|
|
<org.thoughtcrime.securesms.ConversationItem android:id="@+id/conversation_item"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingRight="10dip"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:orientation="vertical"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
|
|
|
<TextView android:id="@+id/group_message_status"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="15dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:textSize="13sp"
|
|
|
|
android:textColor="?attr/conversation_group_member_name"
|
|
|
|
android:visibility="gone" />
|
2012-07-19 19:23:49 -07:00
|
|
|
|
|
|
|
<RelativeLayout
|
2014-02-15 04:21:56 -08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_marginLeft="9dp"
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
android:layout_marginRight="0dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
2014-02-25 05:07:12 +02:00
|
|
|
<org.thoughtcrime.securesms.components.ForegroundImageView
|
|
|
|
android:id="@+id/contact_photo"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
android:scaleType="centerCrop" />
|
|
|
|
<View android:id="@+id/triangle_tick"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_width="12dp"
|
|
|
|
android:layout_height="15dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:layout_alignRight="@id/contact_photo"
|
2014-02-19 12:29:00 -08:00
|
|
|
android:background="?conversation_item_received_triangle_background" />
|
2012-07-19 19:23:49 -07:00
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/conversation_item_parent"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_toRightOf="@id/triangle_tick"
|
2014-02-19 12:29:00 -08:00
|
|
|
android:background="?conversation_item_received_background"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2014-03-27 19:46:27 -07:00
|
|
|
<TextView android:id="@+id/conversation_item_body"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="5dip"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2014-03-27 19:46:27 -07:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?conversation_received_text_primary_color"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:autoLink="all"
|
|
|
|
android:linksClickable="true" />
|
2012-07-19 19:23:49 -07:00
|
|
|
|
2014-02-15 04:21:56 -08:00
|
|
|
<FrameLayout android:id="@+id/mms_view"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_width="wrap_content"
|
2013-06-26 09:07:46 -07:00
|
|
|
android:layout_height="wrap_content"
|
2014-01-16 00:36:05 -08:00
|
|
|
android:visibility="gone">
|
2014-03-27 19:46:27 -07:00
|
|
|
|
2014-02-15 04:21:56 -08:00
|
|
|
<ImageView android:id="@+id/image_view"
|
2013-04-26 11:23:43 -07:00
|
|
|
android:layout_width="230dip"
|
|
|
|
android:layout_height="174dip"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:layout_gravity="center"
|
2013-04-26 11:23:43 -07:00
|
|
|
android:scaleType="centerInside"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:adjustViewBounds="true"
|
2014-03-27 19:46:27 -07:00
|
|
|
android:contentDescription="@string/conversation_item__mms_image_description"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:visibility="gone" />
|
|
|
|
<ImageButton android:id="@+id/play_slideshow_button"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:src="@drawable/mms_play_btn"
|
2014-03-27 19:46:27 -07:00
|
|
|
android:contentDescription="@string/conversation_item__play_button_description"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:visibility="gone" />
|
2012-07-19 19:23:49 -07:00
|
|
|
</FrameLayout>
|
|
|
|
|
2014-02-15 04:21:56 -08:00
|
|
|
<LinearLayout android:id="@+id/mms_download_controls"
|
2012-07-19 19:23:49 -07:00
|
|
|
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 16:51:42 -07:00
|
|
|
android:text="@string/conversation_item_received__download"
|
2012-07-19 19:23:49 -07: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 16:51:42 -07:00
|
|
|
android:text="@string/conversation_item_received__downloading"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2014-02-15 04:21:56 -08:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:paddingTop="2dip"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:gravity="left">
|
|
|
|
|
|
|
|
<ImageView android:id="@+id/delivered_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingRight="3dip"
|
|
|
|
android:src="?conversation_delivered_indicator"
|
2014-03-27 19:46:27 -07:00
|
|
|
android:contentDescription="@string/conversation_item_sent__delivered_description"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:visibility="gone" />
|
2014-01-08 12:29:05 -10:00
|
|
|
|
|
|
|
<ImageView android:id="@+id/sms_secure_indicator"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:paddingTop="2dp"
|
|
|
|
android:src="?menu_lock_icon_small"
|
2014-03-27 19:46:27 -07:00
|
|
|
android:contentDescription="@string/conversation_item__secure_message_description"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:visibility="gone" />
|
2014-01-08 12:29:05 -10:00
|
|
|
|
2014-02-15 04:21:56 -08:00
|
|
|
<TextView android:id="@+id/conversation_item_date"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
|
|
|
android:paddingTop="1dip"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?conversation_received_text_secondary_color"
|
|
|
|
android:fontFamily="sans-serif-light"
|
2014-02-26 13:43:55 +01:00
|
|
|
android:autoLink="none"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:linksClickable="false" />
|
2014-01-08 12:29:05 -10:00
|
|
|
</LinearLayout>
|
2012-07-19 19:23:49 -07:00
|
|
|
</LinearLayout>
|
|
|
|
|
2014-02-15 04:21:56 -08:00
|
|
|
<LinearLayout android:id="@+id/indicators_parent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:background="?conversation_background">
|
2012-07-19 19:23:49 -07:00
|
|
|
|
2014-02-15 04:21:56 -08:00
|
|
|
<ImageView android:id="@+id/sms_failed_indicator"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2012-08-03 17:34:09 -07:00
|
|
|
android:src="@drawable/ic_list_alert_sms_failed"
|
2014-03-27 19:46:27 -07:00
|
|
|
android:contentDescription="@string/conversation_item_sent__send_failed_indicator_description"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:visibility="gone" />
|
2012-07-19 19:23:49 -07:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</org.thoughtcrime.securesms.ConversationItem>
|