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-12-30 01:31:41 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2015-01-21 07:26:58 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2014-03-10 09:32:32 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-07-09 15:03:45 +00:00
|
|
|
android:focusable="true"
|
|
|
|
android:nextFocusRight="@+id/fab"
|
|
|
|
android:nextFocusLeft="@+id/container"
|
2017-04-15 18:19:06 +00:00
|
|
|
android:layout_height="75dp">
|
2011-12-20 18:20:44 +00:00
|
|
|
|
2015-06-01 23:51:14 +00:00
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/contact_photo_image"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
2017-04-15 18:19:06 +00:00
|
|
|
android:layout_width="54dp"
|
|
|
|
android:layout_height="54dp"
|
2015-06-01 23:51:14 +00:00
|
|
|
android:layout_alignParentLeft="true"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_alignParentStart="true"
|
2015-06-01 23:51:14 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
tools:src="@drawable/ic_contact_picture"
|
|
|
|
android:contentDescription="@string/conversation_list_item_view__contact_photo_image"
|
|
|
|
android:layout_marginRight="10dp"
|
2017-04-15 18:19:06 +00:00
|
|
|
android:layout_marginLeft="14dp" />
|
2013-05-24 01:10:15 +00:00
|
|
|
|
2015-10-16 20:59:40 +00:00
|
|
|
<RelativeLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="4dip"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_marginStart="4dip"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:layout_marginRight="8dip"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_marginEnd="8dip"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@id/contact_photo_image"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_toEndOf="@id/contact_photo_image"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:weightSum="1"
|
|
|
|
android:orientation="horizontal">
|
2012-07-17 03:20:13 +00:00
|
|
|
|
2015-10-16 20:59:40 +00:00
|
|
|
<org.thoughtcrime.securesms.components.FromTextView
|
|
|
|
android:id="@+id/from"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_alignParentStart="true"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:layout_toLeftOf="@+id/thumbnail"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_toStartOf="@+id/thumbnail"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
android:textColor="?attr/conversation_list_item_contact_color"
|
|
|
|
android:singleLine="true"
|
|
|
|
tools:text="Jules Bonnot"
|
|
|
|
android:ellipsize="end"
|
2017-04-15 18:19:06 +00:00
|
|
|
android:layout_marginBottom="2dp"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:drawablePadding="5dp"/>
|
2011-12-20 18:20:44 +00:00
|
|
|
|
2015-11-24 15:06:41 +00:00
|
|
|
<org.thoughtcrime.securesms.components.AlertView
|
|
|
|
android:id="@+id/indicators_parent"
|
|
|
|
android:layout_width="18dp"
|
|
|
|
android:layout_height="18dp"
|
|
|
|
android:paddingTop="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_marginEnd="2dp"
|
2015-11-24 15:06:41 +00:00
|
|
|
android:layout_alignParentLeft="true"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_alignParentStart="true"
|
2015-11-24 15:06:41 +00:00
|
|
|
android:layout_below="@id/from"
|
|
|
|
app:useSmallIcon="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"/>
|
2011-12-20 18:20:44 +00:00
|
|
|
|
2015-10-16 20:59:40 +00:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/subject"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/from"
|
2015-11-24 15:06:41 +00:00
|
|
|
android:layout_toRightOf="@id/indicators_parent"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_toEndOf="@id/indicators_parent"
|
2015-11-24 15:06:41 +00:00
|
|
|
android:layout_toLeftOf="@+id/delivery_status"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_toStartOf="@+id/delivery_status"
|
|
|
|
android:paddingRight="1dp"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?attr/conversation_list_item_subject_color"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:singleLine="true"
|
|
|
|
tools:text="Wheels arrive at 3pm flat. This is a somewhat longer message."
|
|
|
|
android:ellipsize="end" />
|
2014-03-10 09:32:32 +00:00
|
|
|
|
2015-10-16 20:59:40 +00:00
|
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
|
|
|
android:id="@+id/thumbnail"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginRight="5dip"
|
|
|
|
android:layout_marginLeft="5dip"
|
|
|
|
android:layout_toLeftOf="@+id/date"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_toStartOf="@+id/date"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginTop="5dip"
|
|
|
|
android:contentDescription="@string/conversation_activity__attachment_thumbnail"
|
|
|
|
app:backgroundColorHint="?conversation_background"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_video_light"
|
2015-11-12 22:44:25 +00:00
|
|
|
tools:visibility="visible" />
|
2014-03-10 09:32:32 +00:00
|
|
|
|
2015-10-16 20:59:40 +00:00
|
|
|
<TextView android:id="@id/date"
|
|
|
|
android:layout_marginLeft="3dip"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_marginStart="3dip"
|
2014-03-10 09:32:32 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_above="@id/subject"
|
2014-03-10 09:32:32 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-10-16 20:59:40 +00:00
|
|
|
android:textColor="?attr/conversation_list_item_date_color"
|
2014-03-10 09:32:32 +00:00
|
|
|
android:fontFamily="sans-serif-light"
|
2015-10-16 20:59:40 +00:00
|
|
|
tools:text="30 mins"
|
|
|
|
android:singleLine="true"/>
|
2011-12-20 18:20:44 +00:00
|
|
|
|
2015-11-23 23:07:41 +00:00
|
|
|
<TextView android:id="@+id/archived"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/date"
|
|
|
|
android:layout_alignParentRight="true"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
2015-11-23 23:07:41 +00:00
|
|
|
android:layout_alignBaseline="@id/subject"
|
|
|
|
android:layout_marginLeft="5dp"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_marginRight="5dp"
|
2015-11-23 23:07:41 +00:00
|
|
|
android:text="@string/conversation_list_item_view__archived"
|
|
|
|
android:textColor="#ffbbbbbb"
|
|
|
|
android:background="@drawable/rounded_rectangle"
|
|
|
|
android:textSize="12sp"
|
|
|
|
/>
|
|
|
|
|
2015-11-24 15:06:41 +00:00
|
|
|
<org.thoughtcrime.securesms.components.DeliveryStatusView
|
|
|
|
android:id="@+id/delivery_status"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/date"
|
|
|
|
android:layout_toLeftOf="@+id/archived"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:layout_toStartOf="@+id/archived"
|
2015-11-24 15:06:41 +00:00
|
|
|
android:layout_alignWithParentIfMissing="true"
|
|
|
|
app:iconColor="?attr/conversation_list_item_subject_color"/>
|
2015-11-23 23:07:41 +00:00
|
|
|
|
2015-10-16 20:59:40 +00:00
|
|
|
</RelativeLayout>
|
2012-07-26 23:21:45 +00:00
|
|
|
</org.thoughtcrime.securesms.ConversationListItem>
|