mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
155 lines
6.6 KiB
XML
155 lines
6.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.thoughtcrime.securesms.ConversationListItem
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:background="?attr/conversation_list_item_background"
|
|
android:layout_width="match_parent"
|
|
android:focusable="true"
|
|
android:nextFocusRight="@+id/fab"
|
|
android:nextFocusLeft="@+id/container"
|
|
android:layout_height="72dp">
|
|
|
|
<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"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:cropToPadding="true"
|
|
tools:src="@drawable/ic_contact_picture"
|
|
android:contentDescription="@string/conversation_list_item_view__contact_photo_image"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp" />
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_toRightOf="@id/contact_photo_image"
|
|
android:layout_toEndOf="@id/contact_photo_image">
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_weight="2"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/from"
|
|
android:orientation="horizontal"
|
|
android:layout_marginBottom="2dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/group_indicator"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:src="@drawable/ic_group_white_24dp"
|
|
android:visibility="gone"
|
|
android:layout_marginTop="1dp"
|
|
android:layout_marginRight="5dp"
|
|
android:layout_marginEnd="5dp" />
|
|
|
|
<org.thoughtcrime.securesms.components.FromTextView
|
|
android:id="@+id/from_text"
|
|
style="@style/Signal.Text.Body"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawablePadding="5dp"
|
|
android:ellipsize="end"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:maxLines="1"
|
|
android:textColor="?attr/conversation_list_item_contact_color"
|
|
tools:text="Jules Bonnot" />
|
|
|
|
<ImageView
|
|
android:id="@+id/verified_indicator"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/ic_verified"
|
|
android:visibility="gone"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginRight="5dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<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" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:gravity="end"
|
|
android:layout_marginLeft="24dp"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginRight="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView android:id="@id/date"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
style="@style/Signal.Text.Caption"
|
|
android:textColor="?attr/conversation_list_item_date_color"
|
|
android:textAllCaps="true"
|
|
tools:text="30 mins"
|
|
android:singleLine="true"/>
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:minHeight="20dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView android:id="@+id/archived"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="6dp"
|
|
android:paddingRight="6dp"
|
|
android:paddingTop="2dp"
|
|
android:paddingBottom="2dp"
|
|
style="@style/Signal.Text.Caption"
|
|
android:text="@string/conversation_list_item_view__archived"
|
|
android:textColor="@color/core_white"
|
|
android:textAllCaps="true"
|
|
android:background="@drawable/archived_indicator_background" />
|
|
|
|
<org.thoughtcrime.securesms.components.DeliveryStatusView
|
|
android:id="@+id/delivery_status"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:iconColor="?attr/conversation_list_item_delivery_icon_color"/>
|
|
|
|
<ImageView android:id="@+id/unread_indicator"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@drawable/attachment_selector_shadow"/>
|
|
|
|
</org.thoughtcrime.securesms.ConversationListItem>
|