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"
|
|
|
|
android:paddingRight="10dip"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="fill_parent"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:background="?conversation_card_background">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<view xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
class="org.thoughtcrime.securesms.components.ImageDivet"
|
|
|
|
position="right"
|
2012-08-01 00:02:50 +00:00
|
|
|
android:id="@+id/contact_photo"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="60dp"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
android:scaleType="centerCrop" />
|
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/conversation_item_parent"
|
|
|
|
android:layout_width="fill_parent"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:layout_height="match_parent"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:layout_toLeftOf="@+id/indicators_parent"
|
|
|
|
android:layout_toRightOf="@id/contact_photo"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:background="?conversation_background"
|
|
|
|
android:paddingLeft="10dip"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:orientation="vertical" >
|
|
|
|
|
|
|
|
<TextView android:id="@+id/conversation_item_body"
|
|
|
|
android:autoLink="all"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:linksClickable="true"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:paddingTop="5dip"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:textColor="?conversation_text_primary_color"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/mms_view"
|
|
|
|
android:layout_width="fill_parent"
|
2013-06-26 16:07:46 +00:00
|
|
|
android:layout_height="wrap_content"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:visibility="gone"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:paddingTop="7dip"
|
|
|
|
android:paddingBottom="7dip">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/image_view"
|
2013-04-26 18:23:43 +00:00
|
|
|
android:layout_width="230dip"
|
|
|
|
android:layout_height="174dip"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:layout_gravity="center"
|
2013-04-26 18:23:43 +00:00
|
|
|
android:scaleType="centerInside"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:background="@android:drawable/picture_frame"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Message Media"/>
|
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"
|
|
|
|
android:contentDescription="Play Button"/>
|
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_received__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_received__downloading"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2012-10-29 23:51:42 +00:00
|
|
|
<LinearLayout android:layout_width="fill_parent"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:layout_height="match_parent"
|
2012-10-29 23:51:42 +00:00
|
|
|
android:orientation="horizontal"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:paddingTop="5dip"
|
2012-10-29 23:51:42 +00:00
|
|
|
android:gravity="left">
|
|
|
|
|
2013-01-07 05:38:36 +00:00
|
|
|
<ImageView android:id="@+id/delivered_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingRight="3dip"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:src="?conversation_delivered_indicator"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Delivered Indicator"/>
|
2013-01-07 05:38:36 +00:00
|
|
|
|
2012-10-29 23:51:42 +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="left"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:textColor="?conversation_text_secondary_color"
|
2012-10-29 23:51:42 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginRight="8dip"
|
2013-01-07 05:38:36 +00:00
|
|
|
android:paddingTop="1dip"/>
|
2012-10-29 23:51:42 +00: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="left"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:textColor="?conversation_text_secondary_color"
|
2012-10-29 23:51:42 +00:00
|
|
|
android:paddingTop="1dip"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2012-07-20 02:23:49 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/indicators_parent"
|
|
|
|
android:layout_width="wrap_content"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:layout_height="fill_parent"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:orientation="vertical"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:background="?conversation_background">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/key_exchange_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2012-07-31 00:15:49 +00:00
|
|
|
android:src="@drawable/ic_menu_login"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Key Exchange Indicator"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/sms_secure_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2012-07-31 00:51:31 +00:00
|
|
|
android:src="@drawable/ic_menu_lock_holo_light"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Secure Message Indicator"/>
|
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"
|
2012-08-04 00:34:09 +00:00
|
|
|
android:src="@drawable/ic_list_alert_sms_failed"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Send Failed Indicator"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</org.thoughtcrime.securesms.ConversationItem>
|