2020-06-16 16:00:24 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2022-05-27 16:40:34 -03:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-06-16 16:00:24 -04:00
|
|
|
android:id="@+id/group_media_card"
|
2022-05-27 16:40:34 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-27 16:26:11 -03:00
|
|
|
app:cardBackgroundColor="?android:attr/windowBackground"
|
|
|
|
app:cardCornerRadius="0dp"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:cardElevation="0dp">
|
2020-06-16 16:00:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-30 17:52:46 -03:00
|
|
|
android:paddingStart="@dimen/dsl_settings_gutter"
|
2022-05-27 16:40:34 -03:00
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:paddingEnd="@dimen/dsl_settings_gutter"
|
|
|
|
android:paddingBottom="12dp">
|
2020-06-16 16:00:24 -04:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
2020-06-16 18:12:14 -04:00
|
|
|
android:id="@+id/message_details_recipient_avatar"
|
2021-08-30 17:52:46 -03:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2020-06-16 16:00:24 -04:00
|
|
|
android:contentDescription="@string/SingleContactSelectionActivity_contact_photo"
|
2022-05-27 16:40:34 -03:00
|
|
|
android:cropToPadding="true"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-06-16 18:12:14 -04:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/message_details_recipient_name"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-06-16 16:00:24 -04:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2022-05-27 16:40:34 -03:00
|
|
|
tools:src="@drawable/ic_contact_picture" />
|
2020-06-16 16:00:24 -04:00
|
|
|
|
2021-11-03 10:44:36 -03:00
|
|
|
<org.thoughtcrime.securesms.badges.BadgeImageView
|
|
|
|
android:id="@+id/message_details_recipient_badge"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginTop="22dp"
|
|
|
|
android:contentDescription="@string/ImageView__badge"
|
|
|
|
app:badge_size="medium"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/message_details_recipient_avatar"
|
2021-11-04 13:42:45 -03:00
|
|
|
app:layout_constraintTop_toTopOf="@id/message_details_recipient_avatar" />
|
2021-11-03 10:44:36 -03:00
|
|
|
|
2020-06-16 16:00:24 -04:00
|
|
|
<org.thoughtcrime.securesms.components.FromTextView
|
2020-06-16 18:12:14 -04:00
|
|
|
android:id="@+id/message_details_recipient_name"
|
2022-05-27 16:40:34 -03:00
|
|
|
style="@style/Signal.Text.BodyLarge"
|
2020-06-16 16:00:24 -04:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:ellipsize="marquee"
|
2022-05-27 16:40:34 -03:00
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="@color/signal_colorOnSurface"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/message_details_recipient_error_description"
|
2021-08-30 17:52:46 -03:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/message_details_recipient_ud_indicator"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/message_details_recipient_avatar"
|
2020-06-16 16:00:24 -04:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2022-05-27 16:40:34 -03:00
|
|
|
tools:text="Jules Bonnot" />
|
2020-06-16 16:00:24 -04:00
|
|
|
|
2022-05-27 16:40:34 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_details_recipient_error_description"
|
2020-06-16 16:00:24 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="#FFF44336"
|
|
|
|
android:visibility="gone"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-06-16 18:12:14 -04:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/message_details_recipient_name"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/message_details_recipient_name"
|
2022-05-27 16:40:34 -03:00
|
|
|
tools:text="New identity"
|
|
|
|
tools:visibility="gone" />
|
2020-06-16 16:00:24 -04:00
|
|
|
|
|
|
|
<TextView
|
2020-06-16 18:12:14 -04:00
|
|
|
android:id="@+id/message_details_recipient_timestamp"
|
2022-05-27 16:40:34 -03:00
|
|
|
style="@style/Signal.Text.BodyMedium"
|
2020-06-16 16:00:24 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-27 16:40:34 -03:00
|
|
|
android:textColor="@color/signal_colorSurfaceVariant"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-08-30 17:52:46 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/message_details_recipient_conflict_button"
|
2020-06-16 16:00:24 -04:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2022-05-27 16:40:34 -03:00
|
|
|
tools:text="1:32 pm" />
|
2020-06-16 16:00:24 -04:00
|
|
|
|
2022-05-27 16:40:34 -03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2020-06-16 18:12:14 -04:00
|
|
|
android:id="@+id/message_details_recipient_conflict_button"
|
2022-05-27 16:40:34 -03:00
|
|
|
style="@style/Signal.Widget.Button.Medium.Tonal"
|
2020-06-16 16:00:24 -04:00
|
|
|
android:layout_width="wrap_content"
|
2022-05-27 16:40:34 -03:00
|
|
|
android:layout_height="wrap_content"
|
2020-06-16 16:00:24 -04:00
|
|
|
android:drawableStart="@drawable/ic_error_white_18dp"
|
|
|
|
android:text="@string/message_recipients_list_item__view"
|
2022-05-27 16:40:34 -03:00
|
|
|
android:textColor="@color/signal_colorOnPrimary"
|
2020-06-16 16:00:24 -04:00
|
|
|
android:visibility="gone"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:backgroundTint="@color/signal_colorError"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-08-30 17:52:46 -03:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/message_details_recipient_timestamp"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/message_details_recipient_ud_indicator"
|
2020-06-16 16:00:24 -04:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
2020-11-09 09:12:28 -05:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/message_details_recipient_ud_indicator"
|
2020-06-16 16:00:24 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-30 17:52:46 -03:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="9dp"
|
|
|
|
android:tint="@color/signal_text_hint"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-08-30 17:52:46 -03:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/message_details_recipient_conflict_button"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/message_details_recipient_name"
|
2020-06-16 16:00:24 -04:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2022-05-27 16:40:34 -03:00
|
|
|
app:srcCompat="@drawable/ic_unidentified_delivery" />
|
2020-06-16 16:00:24 -04:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|