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"
|
|
|
|
android:id="@+id/conversation_item"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:background="?conversation_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"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:orientation="horizontal"
|
2014-01-08 12:29:05 -10:00
|
|
|
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"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:layout_height="match_parent"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:orientation="vertical"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:gravity="right"
|
2014-02-14 17:10:05 -08:00
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_alignParentLeft="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"
|
2012-08-03 17:34:09 -07:00
|
|
|
android:src="@drawable/ic_list_alert_sms_failed"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Send Failed Indicator"/>
|
2012-07-19 19:23:49 -07:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/conversation_item_parent"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_width="wrap_content"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:layout_height="match_parent"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:background="@drawable/conversation_item_sent_shape"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:paddingRight="10dip"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:paddingLeft="10dip"
|
2014-01-16 00:36:05 -08:00
|
|
|
android:layout_marginLeft="50dp"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_marginRight="12dp"
|
|
|
|
android:orientation="vertical">
|
2012-07-19 19:23:49 -07:00
|
|
|
|
2014-01-08 12:29:05 -10:00
|
|
|
<LinearLayout android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="5dip">
|
|
|
|
|
|
|
|
<TextView android:id="@+id/conversation_item_body"
|
|
|
|
android:autoLink="all"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:linksClickable="true"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:gravity="right"
|
|
|
|
android:textColor="?conversation_sent_text_primary_color"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/key_exchange_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_menu_login"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Key Exchange Indicator"/>
|
|
|
|
</LinearLayout>
|
2012-07-19 19:23:49 -07:00
|
|
|
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
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">
|
2012-07-19 19:23:49 -07:00
|
|
|
|
|
|
|
<ImageView
|
2013-04-26 11:23:43 -07: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 11:56:59 -07:00
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Media Message"/>
|
2012-07-19 19:23:49 -07: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 11:56:59 -07:00
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Play Button"/>
|
2012-07-19 19:23:49 -07: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 16:51:42 -07:00
|
|
|
android:text="@string/conversation_item_sent__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_sent__downloading"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2014-01-08 12:29:05 -10:00
|
|
|
<LinearLayout android:layout_width="wrap_content"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:layout_height="match_parent"
|
2012-10-29 16:51:42 -07:00
|
|
|
android:orientation="horizontal"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:paddingTop="0dip"
|
|
|
|
android:layout_gravity="right">
|
2012-10-29 16:51:42 -07:00
|
|
|
|
2013-01-06 21:38:36 -08:00
|
|
|
<ImageView android:id="@+id/delivered_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingRight="3dip"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:src="?conversation_delivered_indicator"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Delivered Indicator"/>
|
2014-01-08 12:29:05 -10:00
|
|
|
|
2012-10-29 16:51:42 -07: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"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:textColor="?conversation_sent_text_secondary_color"
|
2012-10-29 16:51:42 -07:00
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginRight="8dip"
|
|
|
|
android:paddingTop="1dip"/>
|
2014-01-08 12:29:05 -10:00
|
|
|
|
2012-10-29 16:51:42 -07:00
|
|
|
<TextView android:id="@+id/conversation_item_date"
|
|
|
|
android:autoLink="all"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:linksClickable="false"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:layout_gravity="right"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:textColor="?conversation_sent_text_secondary_color"
|
|
|
|
android:paddingTop="1dip"
|
|
|
|
android:paddingBottom="5dp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/sms_secure_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|right"
|
|
|
|
android:src="?menu_lock_icon_small"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:contentDescription="Secure Message Indicator" />
|
|
|
|
|
2012-10-29 16:51:42 -07:00
|
|
|
</LinearLayout>
|
2014-01-08 12:29:05 -10:00
|
|
|
|
2012-07-19 19:23:49 -07:00
|
|
|
</LinearLayout>
|
|
|
|
|
2014-01-08 12:29:05 -10:00
|
|
|
<View
|
|
|
|
android:background="@drawable/conversation_item_sent_triangle_shape"
|
|
|
|
android:layout_width="12dp"
|
|
|
|
android:layout_height="15dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:id="@id/contact_photo"
|
|
|
|
android:layout_alignParentRight="true"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2012-07-19 19:23:49 -07:00
|
|
|
android:cropToPadding="true"
|
|
|
|
android:layout_marginRight="0dip"
|
|
|
|
android:padding="0dip"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:visibility="gone" />
|
2012-07-19 19:23:49 -07:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</org.thoughtcrime.securesms.ConversationItem>
|