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"
|
2017-11-13 18:01:05 -08:00
|
|
|
android:background="?attr/conversation_list_item_background"
|
2014-03-10 10:32:32 +01:00
|
|
|
android:layout_width="match_parent"
|
2015-07-10 01:03:45 +10:00
|
|
|
android:focusable="true"
|
|
|
|
android:nextFocusRight="@+id/fab"
|
|
|
|
android:nextFocusLeft="@+id/container"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_height="72dp"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp">
|
2011-12-20 10:20:44 -08:00
|
|
|
|
2018-09-24 15:34:21 -07:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/avatar_container"
|
|
|
|
android:layout_width="54dp"
|
|
|
|
android:layout_height="wrap_content"
|
2015-11-26 19:04:27 +01:00
|
|
|
android:layout_alignParentStart="true"
|
2015-06-01 16:51:14 -07:00
|
|
|
android:layout_centerVertical="true"
|
2018-09-24 15:34:21 -07:00
|
|
|
android:layout_marginEnd="6dp">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/contact_photo_image"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
tools:src="@drawable/ic_contact_picture"
|
|
|
|
android:contentDescription="@string/conversation_list_item_view__contact_photo_image" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/unread_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:layout_gravity="end|top"
|
2018-09-24 15:34:21 -07:00
|
|
|
style="@style/Signal.Text.Caption"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:minWidth="@dimen/unread_count_bubble_diameter"
|
|
|
|
android:padding="5sp"
|
|
|
|
android:background="?conversation_list_item_unread_background"
|
|
|
|
android:textColor="@color/core_white"
|
|
|
|
android:gravity="center"
|
|
|
|
tools:text="1"/>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2013-05-23 18:10:15 -07:00
|
|
|
|
2015-10-16 13:59:40 -07:00
|
|
|
<RelativeLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginStart="4dp"
|
2015-10-16 13:59:40 -07:00
|
|
|
android:layout_centerVertical="true"
|
2018-09-24 15:34:21 -07:00
|
|
|
android:layout_toEndOf="@id/avatar_container"
|
2015-10-16 13:59:40 -07:00
|
|
|
android:weightSum="1"
|
|
|
|
android:orientation="horizontal">
|
2012-07-16 20:20:13 -07:00
|
|
|
|
2015-10-16 13:59:40 -07:00
|
|
|
<org.thoughtcrime.securesms.components.FromTextView
|
|
|
|
android:id="@+id/from"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
2015-11-26 19:04:27 +01:00
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_toStartOf="@+id/thumbnail"
|
2018-06-26 10:27:44 -07:00
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
2015-10-16 13:59:40 -07:00
|
|
|
android:textColor="?attr/conversation_list_item_contact_color"
|
2018-05-22 13:56:02 -04:00
|
|
|
android:maxLines="1"
|
2015-10-16 13:59:40 -07:00
|
|
|
tools:text="Jules Bonnot"
|
|
|
|
android:ellipsize="end"
|
2017-04-15 11:19:06 -07:00
|
|
|
android:layout_marginBottom="2dp"
|
2015-10-16 13:59:40 -07:00
|
|
|
android:drawablePadding="5dp"/>
|
2011-12-20 10:20:44 -08:00
|
|
|
|
2015-11-24 16:06:41 +01:00
|
|
|
<org.thoughtcrime.securesms.components.AlertView
|
|
|
|
android:id="@+id/indicators_parent"
|
|
|
|
android:layout_width="18dp"
|
|
|
|
android:layout_height="18dp"
|
|
|
|
android:paddingTop="2dp"
|
2015-11-26 19:04:27 +01:00
|
|
|
android:layout_marginEnd="2dp"
|
|
|
|
android:layout_alignParentStart="true"
|
2015-11-24 16:06:41 +01:00
|
|
|
android:layout_below="@id/from"
|
|
|
|
app:useSmallIcon="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"/>
|
2011-12-20 10:20:44 -08:00
|
|
|
|
2018-10-29 15:14:31 -07:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/subject_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:paddingEnd="1dp"
|
2018-10-29 15:14:31 -07:00
|
|
|
android:layout_below="@id/from"
|
|
|
|
android:layout_toEndOf="@id/indicators_parent"
|
|
|
|
android:layout_toStartOf="@+id/status">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/subject"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="@style/Signal.Text.Preview"
|
|
|
|
android:textColor="?attr/conversation_list_item_subject_color"
|
|
|
|
android:maxLines="1"
|
|
|
|
tools:text="Wheels arrive at 3pm flat. This is a somewhat longer message."
|
|
|
|
android:ellipsize="end" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.TypingIndicatorView
|
|
|
|
android:id="@+id/typing_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
2015-10-16 13:59:40 -07:00
|
|
|
android:layout_height="wrap_content"
|
2018-10-29 15:14:31 -07:00
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:typingIndicator_tint="?conversation_list_typing_tint"/>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2014-03-10 10:32:32 +01:00
|
|
|
|
2015-10-16 13:59:40 -07:00
|
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
|
|
|
android:id="@+id/thumbnail"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_marginStart="5dp"
|
2015-11-26 19:04:27 +01:00
|
|
|
android:layout_toStartOf="@+id/date"
|
2015-10-16 13:59:40 -07:00
|
|
|
android:layout_alignParentTop="true"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginTop="5dp"
|
2015-10-16 13:59:40 -07:00
|
|
|
android:contentDescription="@string/conversation_activity__attachment_thumbnail"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_video_light"
|
2015-11-12 14:44:25 -08:00
|
|
|
tools:visibility="visible" />
|
2014-03-10 10:32:32 +01:00
|
|
|
|
2015-10-16 13:59:40 -07:00
|
|
|
<TextView android:id="@id/date"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginStart="3dp"
|
2014-03-10 10:32:32 +01:00
|
|
|
android:layout_height="wrap_content"
|
2015-10-16 13:59:40 -07:00
|
|
|
android:layout_width="wrap_content"
|
2015-11-26 19:04:27 +01:00
|
|
|
android:layout_alignParentEnd="true"
|
2018-07-12 16:03:32 -07:00
|
|
|
android:layout_alignBaseline="@+id/from"
|
2018-06-26 10:27:44 -07:00
|
|
|
style="@style/Signal.Text.Caption"
|
2015-10-16 13:59:40 -07:00
|
|
|
android:textColor="?attr/conversation_list_item_date_color"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:textAllCaps="true"
|
2015-10-16 13:59:40 -07:00
|
|
|
tools:text="30 mins"
|
|
|
|
android:singleLine="true"/>
|
2011-12-20 10:20:44 -08:00
|
|
|
|
2015-11-23 15:07:41 -08:00
|
|
|
<TextView android:id="@+id/archived"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/date"
|
2015-11-26 19:04:27 +01:00
|
|
|
android:layout_alignParentEnd="true"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginStart="5dp"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:paddingStart="6dp"
|
|
|
|
android:paddingEnd="6dp"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:paddingTop="2dp"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
style="@style/Signal.Text.Caption"
|
2015-11-23 15:07:41 -08:00
|
|
|
android:text="@string/conversation_list_item_view__archived"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:textColor="@color/core_white"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:background="@drawable/archived_indicator_background" />
|
2015-11-23 15:07:41 -08:00
|
|
|
|
|
|
|
|
2017-11-15 15:49:45 -08:00
|
|
|
<FrameLayout android:id="@+id/status"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginTop="4dp"
|
2017-11-15 15:49:45 -08:00
|
|
|
android:layout_below="@id/date"
|
|
|
|
android:layout_toStartOf="@id/archived"
|
|
|
|
android:layout_alignWithParentIfMissing="true">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.DeliveryStatusView
|
|
|
|
android:id="@+id/delivery_status"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_gravity="center_vertical"
|
2018-07-12 16:03:32 -07:00
|
|
|
app:iconColor="?attr/conversation_list_item_delivery_icon_color"/>
|
2017-11-15 15:49:45 -08:00
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
2015-10-16 13:59:40 -07:00
|
|
|
</RelativeLayout>
|
2018-06-26 10:27:44 -07:00
|
|
|
|
2012-07-26 16:21:45 -07:00
|
|
|
</org.thoughtcrime.securesms.ConversationListItem>
|