2011-12-20 10:20:44 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2013-06-21 11:56:59 -07:00
|
|
|
<org.thoughtcrime.securesms.ConversationListItem
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2011-12-20 10:20:44 -08:00
|
|
|
|
2013-05-23 18:10:15 -07:00
|
|
|
<FrameLayout android:id="@+id/contact_photo_frame"
|
|
|
|
android:layout_width="wrap_content"
|
2012-11-20 20:14:30 -08:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
2014-01-16 00:36:05 -08:00
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2012-11-20 20:14:30 -08:00
|
|
|
android:visibility="visible">
|
2013-06-21 11:56:59 -07:00
|
|
|
|
2014-02-25 05:07:12 +02: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-20 20:14:30 -08:00
|
|
|
</FrameLayout>
|
2013-05-23 18:10:15 -07:00
|
|
|
|
2011-12-20 10:20:44 -08:00
|
|
|
<TextView android:id="@+id/from"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:textColor="?attr/conversation_list_item_contact_color"
|
2011-12-20 10:20:44 -08:00
|
|
|
android:singleLine="true"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_marginTop="12dip"
|
2011-12-20 10:20:44 -08:00
|
|
|
android:layout_marginRight="5dip"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_marginLeft="4dip"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:layout_marginBottom="10dip"
|
2012-11-20 20:14:30 -08:00
|
|
|
android:layout_alignTop="@id/contact_photo_frame"
|
|
|
|
android:layout_toRightOf="@id/contact_photo_frame"
|
2014-02-17 12:08:54 -08:00
|
|
|
android:layout_alignParentRight="true"
|
2011-12-20 10:20:44 -08:00
|
|
|
android:layout_alignWithParentIfMissing="true"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:ellipsize="marquee" />
|
2013-05-23 18:10:15 -07:00
|
|
|
<!--android:layout_toLeftOf="@id/checkbox"-->
|
2012-07-16 20:20:13 -07:00
|
|
|
|
2011-12-20 10:20:44 -08:00
|
|
|
<TextView android:id="@+id/date"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_marginTop="12dip"
|
2011-12-20 10:20:44 -08:00
|
|
|
android:layout_marginLeft="5dip"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:paddingRight="10dip"
|
2011-12-20 10:20:44 -08:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:textSize="13dp"
|
2014-01-16 00:36:05 -08:00
|
|
|
android:textColor="?attr/conversation_list_item_date_color"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:fontFamily="sans-serif-light"
|
2011-12-20 10:20:44 -08:00
|
|
|
android:singleLine="true"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_alignTop="@id/contact_photo_frame"
|
|
|
|
android:layout_alignParentRight="true" />
|
2011-12-20 10:20:44 -08:00
|
|
|
|
|
|
|
<ImageView android:id="@+id/error"
|
|
|
|
android:layout_marginLeft="3dip"
|
|
|
|
android:visibility="invisible"
|
|
|
|
android:layout_toLeftOf="@id/date"
|
|
|
|
android:layout_alignBottom="@id/date"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:src="@drawable/ic_list_alert_sms_failed"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:contentDescription="Error Alert" />
|
2011-12-20 10:20:44 -08:00
|
|
|
|
|
|
|
<ImageView android:id="@+id/attachment"
|
|
|
|
android:layout_marginLeft="3dip"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_toLeftOf="@id/error"
|
|
|
|
android:layout_alignBottom="@id/date"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:src="@drawable/ic_attachment_universal_small"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:contentDescription="Attachment Indicator" />
|
2011-12-20 10:20:44 -08:00
|
|
|
|
|
|
|
<TextView android:id="@+id/subject"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:textColor="?attr/conversation_list_item_subject_color"
|
|
|
|
android:fontFamily="sans-serif-light"
|
2011-12-20 10:20:44 -08:00
|
|
|
android:singleLine="true"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_marginBottom="12dip"
|
|
|
|
android:layout_marginLeft="4dip"
|
2012-11-20 20:14:30 -08:00
|
|
|
android:layout_alignBottom="@id/contact_photo_frame"
|
|
|
|
android:layout_toRightOf="@id/contact_photo_frame"
|
2011-12-20 10:20:44 -08:00
|
|
|
android:layout_toLeftOf="@id/date"
|
|
|
|
android:ellipsize="end" />
|
|
|
|
|
2012-07-26 16:21:45 -07:00
|
|
|
</org.thoughtcrime.securesms.ConversationListItem>
|