2015-06-09 07:37:20 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-06-11 12:52:28 -04:00
|
|
|
<org.thoughtcrime.securesms.conversation.ConversationTitleView 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:id="@+id/conversation_title_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
2022-05-26 17:32:52 -03:00
|
|
|
tools:layout_height="@dimen/signal_m3_toolbar_height">
|
2017-09-12 22:48:30 -07:00
|
|
|
|
2021-09-24 13:39:28 -03:00
|
|
|
<RelativeLayout
|
|
|
|
android:transitionName="avatar"
|
|
|
|
android:id="@+id/contact_photo_container"
|
|
|
|
android:layout_width="wrap_content"
|
2021-11-13 10:00:41 -05:00
|
|
|
android:layout_height="match_parent"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_marginEnd="16dp">
|
2021-09-24 13:39:28 -03:00
|
|
|
|
2022-02-24 13:40:28 -04:00
|
|
|
<org.thoughtcrime.securesms.avatar.view.AvatarView
|
2021-09-24 13:39:28 -03:00
|
|
|
android:id="@+id/contact_photo_image"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:contentDescription="@string/conversation_list_item_view__contact_photo_image"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
|
|
|
app:fallbackImageSize="small"
|
|
|
|
tools:src="@drawable/ic_contact_picture" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.badges.BadgeImageView
|
|
|
|
android:id="@+id/badge"
|
2021-09-28 16:55:07 -03:00
|
|
|
android:layout_width="16dp"
|
|
|
|
android:layout_height="16dp"
|
2021-09-24 13:39:28 -03:00
|
|
|
android:layout_alignStart="@id/contact_photo_image"
|
|
|
|
android:layout_alignTop="@id/contact_photo_image"
|
2021-11-10 10:55:49 -04:00
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginTop="23dp"
|
2021-09-24 13:39:28 -03:00
|
|
|
android:contentDescription="@string/ImageView__badge"
|
2021-11-04 13:42:45 -03:00
|
|
|
app:badge_size="small" />
|
2021-09-24 13:39:28 -03:00
|
|
|
</RelativeLayout>
|
2017-09-12 22:48:30 -07:00
|
|
|
|
2019-01-13 23:30:54 -08:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:layout_centerVertical="true"
|
2021-09-24 13:39:28 -03:00
|
|
|
android:layout_toEndOf="@id/contact_photo_container"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:orientation="vertical">
|
2017-09-12 22:48:30 -07:00
|
|
|
|
2021-10-01 12:29:46 -04:00
|
|
|
<org.thoughtcrime.securesms.components.FromTextView
|
2019-01-13 23:30:54 -08:00
|
|
|
android:id="@+id/title"
|
2022-05-26 17:32:52 -03:00
|
|
|
style="@style/Signal.Text.TitleMedium"
|
2019-01-13 23:30:54 -08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-08 10:21:55 -03:00
|
|
|
android:layout_gravity="center_vertical|start"
|
2020-07-14 07:37:09 -07:00
|
|
|
android:drawablePadding="3dp"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:ellipsize="end"
|
2019-01-13 23:30:54 -08:00
|
|
|
android:gravity="center_vertical"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:maxLines="1"
|
|
|
|
android:transitionName="recipient_name"
|
|
|
|
tools:ignore="UnusedAttribute"
|
2020-07-14 07:37:09 -07:00
|
|
|
tools:text="J. Jonah Jameson" />
|
2019-01-13 23:30:54 -08:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/subtitle_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
2019-12-03 16:26:05 -04:00
|
|
|
<include layout="@layout/expiration_timer_badge" />
|
|
|
|
|
2020-11-09 09:12:28 -05:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2019-01-13 23:30:54 -08:00
|
|
|
android:id="@+id/verified_indicator"
|
2019-12-03 16:26:05 -04:00
|
|
|
android:layout_width="12dp"
|
|
|
|
android:layout_height="match_parent"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:layout_marginEnd="3dp"
|
2021-02-09 11:42:57 -05:00
|
|
|
android:tint="@color/signal_inverse_transparent_80"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:visibility="gone"
|
2021-09-24 13:39:28 -03:00
|
|
|
app:srcCompat="@drawable/ic_check_24"
|
2019-06-11 12:52:28 -04:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/verified_subtitle"
|
2022-05-26 17:32:52 -03:00
|
|
|
style="@style/Signal.Text.BodySmall"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|start"
|
|
|
|
android:layout_marginEnd="3dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:text="@string/ConversationTitleView_verified"
|
2021-09-24 13:39:28 -03:00
|
|
|
android:textColor="@color/signal_inverse_transparent_80"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:textDirection="ltr" />
|
2017-06-06 18:03:09 -07:00
|
|
|
|
2019-01-13 23:30:54 -08:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
2017-09-12 22:48:30 -07:00
|
|
|
android:id="@+id/subtitle"
|
2022-05-26 17:32:52 -03:00
|
|
|
style="@style/Signal.Text.BodySmall"
|
2017-09-12 22:48:30 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|start"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:ellipsize="end"
|
2017-09-12 22:48:30 -07:00
|
|
|
android:gravity="center_vertical"
|
2019-06-11 12:52:28 -04:00
|
|
|
android:maxLines="1"
|
2021-09-24 13:39:28 -03:00
|
|
|
android:textColor="@color/signal_inverse_transparent_80"
|
2017-09-12 22:48:30 -07:00
|
|
|
android:textDirection="ltr"
|
2019-06-11 12:52:28 -04:00
|
|
|
tools:text="(123) 123-1234" />
|
2017-09-12 22:48:30 -07:00
|
|
|
|
2019-01-13 23:30:54 -08:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2015-06-09 07:37:20 -07:00
|
|
|
|
2019-01-31 19:28:40 -08:00
|
|
|
</org.thoughtcrime.securesms.conversation.ConversationTitleView>
|