2019-11-05 20:36:40 +03: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"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/itemUserRoot"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?riotx_background"
|
|
|
|
android:foreground="?attr/selectableItemBackground"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="8dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/itemUserAvatar"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginStart="8dp"
|
2021-02-12 19:44:12 +03:00
|
|
|
android:contentDescription="@string/avatar"
|
2019-11-05 20:36:40 +03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
2020-07-10 23:35:51 +03:00
|
|
|
<TextView
|
2019-11-05 20:36:40 +03:00
|
|
|
android:id="@+id/itemUserId"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?riotx_text_primary"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/itemUserName"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/itemUserAvatar"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:text="@sample/matrix.json/data/mxid" />
|
|
|
|
|
2020-07-10 23:35:51 +03:00
|
|
|
<TextView
|
2019-11-05 20:36:40 +03:00
|
|
|
android:id="@+id/itemUserName"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?riotx_text_secondary"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/itemUserAvatar"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/itemUserId"
|
|
|
|
tools:text="@sample/matrix.json/data/displayName"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|