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"
|
2014-12-29 17:31:41 -08:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2015-01-20 21:26:58 -10:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2014-03-10 10:32:32 +01:00
|
|
|
android:layout_width="match_parent"
|
2015-06-01 16:51:14 -07:00
|
|
|
android:background="@drawable/conversation_list_item_background"
|
2015-01-20 21:26:58 -10:00
|
|
|
android:layout_height="70dp">
|
2011-12-20 10:20:44 -08:00
|
|
|
|
2015-06-01 16:51:14 -07:00
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/contact_photo_image"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_contact_picture"
|
|
|
|
android:contentDescription="@string/conversation_list_item_view__contact_photo_image"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:layout_marginLeft="10dp" />
|
2013-05-23 18:10:15 -07:00
|
|
|
|
2014-03-10 10:32:32 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2011-12-20 10:20:44 -08:00
|
|
|
android:layout_height="wrap_content"
|
2014-03-10 10:32:32 +01:00
|
|
|
android:layout_marginTop="4dip"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:layout_marginLeft="4dip"
|
2014-03-10 10:32:32 +01:00
|
|
|
android:layout_marginRight="8dip"
|
|
|
|
android:layout_marginBottom="4dip"
|
|
|
|
android:layout_centerVertical="true"
|
2015-06-01 16:51:14 -07:00
|
|
|
android:layout_toRightOf="@id/contact_photo_image"
|
2014-03-10 10:32:32 +01:00
|
|
|
android:orientation="vertical">
|
2012-07-16 20:20:13 -07:00
|
|
|
|
2014-03-10 10:32:32 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="1"
|
|
|
|
android:gravity="bottom">
|
2011-12-20 10:20:44 -08:00
|
|
|
|
2015-05-04 11:36:18 -07:00
|
|
|
<org.thoughtcrime.securesms.components.FromTextView
|
|
|
|
android:id="@+id/from"
|
2014-03-10 10:32:32 +01:00
|
|
|
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"
|
2015-01-20 21:26:58 -10:00
|
|
|
tools:text="Jules Bonnot"
|
2014-03-10 10:32:32 +01:00
|
|
|
android:ellipsize="marquee" />
|
2011-12-20 10:20:44 -08:00
|
|
|
|
2014-03-10 10:32:32 +01: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 23:09:50 +02:00
|
|
|
android:src="@drawable/ic_action_warning_red"
|
2015-03-03 19:57:44 +01:00
|
|
|
android:contentDescription="@string/conversation_list_item_view__error_alert" />
|
2014-03-10 10:32:32 +01:00
|
|
|
|
|
|
|
<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"
|
2015-01-20 21:26:58 -10:00
|
|
|
tools:text="30 mins"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:layout_gravity="top" />
|
2014-03-10 10:32:32 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
2015-05-06 13:53:55 -07:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/subject"
|
2014-03-10 10:32:32 +01:00
|
|
|
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"
|
2015-01-20 21:26:58 -10:00
|
|
|
tools:text="Wheels arrive at 3pm flat."
|
2014-03-10 10:32:32 +01:00
|
|
|
android:ellipsize="end" />
|
2011-12-20 10:20:44 -08:00
|
|
|
|
2014-03-10 10:32:32 +01:00
|
|
|
</LinearLayout>
|
2012-07-26 16:21:45 -07:00
|
|
|
</org.thoughtcrime.securesms.ConversationListItem>
|