2022-02-24 13:40:28 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2022-08-09 13:29:04 -03:00
|
|
|
tools:viewBindingIgnore="true"
|
2022-02-24 13:40:28 -04:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/conversation_item_background"
|
|
|
|
android:focusable="true"
|
|
|
|
android:minHeight="@dimen/contact_selection_item_height"
|
|
|
|
android:paddingStart="@dimen/dsl_settings_gutter"
|
|
|
|
android:paddingEnd="@dimen/dsl_settings_gutter">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/contact_photo_image"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:contentDescription="@string/SingleContactSelectionActivity_contact_photo"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:ignore="UnusedAttribute"
|
|
|
|
tools:src="@color/blue_600" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.badges.BadgeImageView
|
|
|
|
android:id="@+id/contact_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/contact_photo_image"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/contact_photo_image"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckBox
|
|
|
|
android:id="@+id/check_box"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:background="?contactCheckboxBackground"
|
|
|
|
android:button="@null"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.FromTextView
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body1"
|
|
|
|
android:textColor="@color/signal_text_primary"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/number"
|
2023-05-19 13:32:35 -03:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_barrier"
|
2022-02-24 13:40:28 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@id/contact_photo_image"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:drawableStart="@drawable/ic_bell_24"
|
|
|
|
tools:drawableTint="@color/signal_icon_tint_secondary"
|
|
|
|
tools:text="@sample/contacts.json/data/name" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/number"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body2"
|
|
|
|
android:textColor="@color/signal_text_secondary"
|
|
|
|
android:textDirection="ltr"
|
|
|
|
app:emoji_forceCustom="true"
|
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/label"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/contact_photo_image"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/name"
|
2023-01-30 12:52:27 -04:00
|
|
|
tools:text="@tools:sample/lorem/random" />
|
2022-02-24 13:40:28 -04:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:paddingStart="4dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body2"
|
|
|
|
android:textColor="@color/signal_text_secondary"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/name"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/number"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/number"
|
2023-01-30 12:52:27 -04:00
|
|
|
tools:visibility="gone"
|
2022-02-24 13:40:28 -04:00
|
|
|
tools:ignore="RtlSymmetry"
|
|
|
|
tools:text="· Mobile" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/sms_tag"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:text="@string/ContactSelectionListItem__sms"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body2"
|
|
|
|
android:textColor="@color/signal_text_secondary"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/check_box"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_goneMarginEnd="0dp"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2023-05-19 13:32:35 -03:00
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/button_barrier"
|
|
|
|
app:constraint_referenced_ids="start_audio,start_video,sms_tag"
|
|
|
|
app:barrierDirection="start"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
2023-03-16 12:59:58 -03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/start_video"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2023-05-19 13:32:35 -03:00
|
|
|
android:layout_marginEnd="-12dp"
|
2023-03-16 12:59:58 -03:00
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:src="@drawable/ic_video_call_24"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:padding="12dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2023-05-19 13:32:35 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2023-03-16 12:59:58 -03:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:tint="@color/signal_colorOnSurface"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/start_audio"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:src="@drawable/symbol_phone_24"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:padding="12dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/start_video"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:tint="@color/signal_colorOnSurface"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2022-02-24 13:40:28 -04:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|