2011-12-20 18:20:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2013-06-21 18:56:59 +00:00
|
|
|
<org.thoughtcrime.securesms.ConversationListItem
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2014-03-10 09:32:32 +00:00
|
|
|
android:layout_width="match_parent"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:layout_height="wrap_content">
|
2011-12-20 18:20:44 +00:00
|
|
|
|
2013-05-24 01:10:15 +00:00
|
|
|
<FrameLayout android:id="@+id/contact_photo_frame"
|
|
|
|
android:layout_width="wrap_content"
|
2012-11-21 04:14:30 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
2014-01-16 08:36:05 +00:00
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2012-11-21 04:14:30 +00:00
|
|
|
android:visibility="visible">
|
2013-06-21 18:56:59 +00:00
|
|
|
|
2014-02-25 03:07:12 +00:00
|
|
|
<org.thoughtcrime.securesms.components.ForegroundImageView
|
|
|
|
android:id="@+id/contact_photo_image"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="60dp"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:contentDescription="Contact Photo Image"
|
|
|
|
android:layout_marginLeft="0dp" />
|
2012-11-21 04:14:30 +00:00
|
|
|
</FrameLayout>
|
2013-05-24 01:10:15 +00:00
|
|
|
|
2014-03-10 09:32:32 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2011-12-20 18:20:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2014-03-10 09:32:32 +00:00
|
|
|
android:layout_marginTop="4dip"
|
2014-01-08 22:29:05 +00:00
|
|
|
android:layout_marginLeft="4dip"
|
2014-03-10 09:32:32 +00:00
|
|
|
android:layout_marginRight="8dip"
|
|
|
|
android:layout_marginBottom="4dip"
|
|
|
|
android:layout_centerVertical="true"
|
2012-11-21 04:14:30 +00:00
|
|
|
android:layout_toRightOf="@id/contact_photo_frame"
|
2014-03-10 09:32:32 +00:00
|
|
|
android:orientation="vertical">
|
2012-07-17 03:20:13 +00:00
|
|
|
|
2014-03-10 09:32:32 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="1"
|
|
|
|
android:gravity="bottom">
|
2011-12-20 18:20:44 +00:00
|
|
|
|
2014-03-10 09:32:32 +00:00
|
|
|
<TextView android:id="@+id/from"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
android:textColor="?attr/conversation_list_item_contact_color"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="marquee" />
|
2011-12-20 18:20:44 +00:00
|
|
|
|
2014-03-10 09:32:32 +00:00
|
|
|
<ImageView android:id="@+id/attachment"
|
|
|
|
android:layout_marginLeft="3dip"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_width="20sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:src="@drawable/ic_attachment_universal_small"
|
|
|
|
android:contentDescription="Attachment Indicator" />
|
2011-12-20 18:20:44 +00:00
|
|
|
|
2014-03-10 09:32:32 +00:00
|
|
|
<ImageView android:id="@+id/error"
|
|
|
|
android:layout_marginLeft="3dip"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_width="20sp"
|
|
|
|
android:visibility="gone"
|
2014-06-12 21:09:50 +00:00
|
|
|
android:src="@drawable/ic_action_warning_red"
|
2014-03-10 09:32:32 +00:00
|
|
|
android:contentDescription="Error Alert" />
|
|
|
|
|
|
|
|
<TextView android:id="@+id/date"
|
|
|
|
android:layout_marginLeft="3dip"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?attr/conversation_list_item_date_color"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:singleLine="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView android:id="@+id/subject"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?attr/conversation_list_item_subject_color"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="end" />
|
2011-12-20 18:20:44 +00:00
|
|
|
|
2014-03-10 09:32:32 +00:00
|
|
|
</LinearLayout>
|
2012-07-26 23:21:45 +00:00
|
|
|
</org.thoughtcrime.securesms.ConversationListItem>
|