2021-11-23 14:34:24 +03:00
<?xml version="1.0" encoding="utf-8"?>
2021-12-03 21:15:25 +03:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android= "http://schemas.android.com/apk/res/android"
2021-11-23 14:34:24 +03:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2021-11-23 23:22:58 +03:00
android:id="@+id/threadSummaryRootConstraintLayout"
2021-11-23 14:34:24 +03:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-11-23 23:22:58 +03:00
android:background="?android:colorBackground"
android:clickable="true"
android:focusable="true"
2021-12-03 21:15:25 +03:00
android:foreground="?attr/selectableItemBackground"
android:paddingStart="12dp"
android:paddingTop="12dp"
android:paddingEnd="0dp">
2021-11-23 14:34:24 +03:00
<ImageView
android:id="@+id/threadSummaryAvatarImageView"
android:layout_width="40dp"
android:layout_height="40dp"
android:contentDescription="@string/avatar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@sample/user_round_avatars" />
<TextView
android:id="@+id/threadSummaryTitleTextView"
style="@style/Widget.Vector.TextView.Body.Medium"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/element_name_04"
2021-12-03 21:15:25 +03:00
android:textStyle="bold"
2021-11-23 14:34:24 +03:00
app:layout_constraintEnd_toStartOf="@id/threadSummaryDateTextView"
app:layout_constraintStart_toEndOf="@id/threadSummaryAvatarImageView"
app:layout_constraintTop_toTopOf="parent"
2021-11-23 18:09:58 +03:00
tools:text="Aris Kots" />
2021-11-23 14:34:24 +03:00
<TextView
android:id="@+id/threadSummaryDateTextView"
style="@style/Widget.Vector.TextView.Caption"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
2022-01-14 14:02:08 +03:00
android:layout_marginEnd="28dp"
2021-11-23 18:09:58 +03:00
android:gravity="end"
2021-12-03 21:15:25 +03:00
android:maxLines="1"
2021-11-23 14:34:24 +03:00
android:textColor="?vctr_content_secondary"
app:layout_constraintBottom_toBottomOf="@id/threadSummaryTitleTextView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/threadSummaryTitleTextView"
2021-11-23 18:09:58 +03:00
tools:text="10 minutes" />
2021-11-23 14:34:24 +03:00
2021-12-03 21:15:25 +03:00
<ImageView
android:id="@+id/threadSummaryUnreadImageView"
android:layout_width="8dp"
android:layout_height="8dp"
android:src="@drawable/notification_badge"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/threadSummaryDateTextView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/threadSummaryDateTextView"
app:layout_constraintTop_toTopOf="@id/threadSummaryDateTextView"
app:tint="@color/palette_gray_200"
tools:ignore="ContentDescription"
tools:visibility="visible" />
2021-11-23 14:34:24 +03:00
<TextView
android:id="@+id/threadSummaryRootMessageTextView"
style="@style/Widget.Vector.TextView.Body"
android:layout_width="0dp"
android:layout_height="wrap_content"
2022-01-14 14:02:08 +03:00
android:layout_marginTop="3dp"
2021-11-23 18:09:58 +03:00
android:layout_marginEnd="25dp"
2021-11-23 14:34:24 +03:00
android:ellipsize="end"
android:maxLines="2"
android:textColor="?vctr_content_primary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/threadSummaryTitleTextView"
app:layout_constraintTop_toBottomOf="@id/threadSummaryTitleTextView"
tools:text="It’ s really encouraging to feel like you are a part of something greater than yourself. I It’ s really encouraging to feel like you are a part of something greater than yourself. I " />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/threadSummaryConstraintLayout"
android:layout_width="0dp"
android:layout_height="wrap_content"
2021-11-23 18:09:58 +03:00
android:layout_marginEnd="25dp"
2021-11-23 14:34:24 +03:00
android:contentDescription="@string/room_threads_filter"
android:maxWidth="496dp"
android:minWidth="144dp"
android:paddingTop="10dp"
2022-01-14 14:02:08 +03:00
android:paddingBottom="12dp"
2021-11-23 14:34:24 +03:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/threadSummaryTitleTextView"
app:layout_constraintTop_toBottomOf="@id/threadSummaryRootMessageTextView"
tools:visibility="visible">
<include layout= "@layout/view_thread_room_summary" />
</androidx.constraintlayout.widget.ConstraintLayout>
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:background="?vctr_content_quinary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/threadSummaryConstraintLayout"
app:layout_constraintTop_toBottomOf="@id/threadSummaryConstraintLayout" />
</androidx.constraintlayout.widget.ConstraintLayout>