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"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:background="?android:colorBackground"
|
2019-11-05 20:36:40 +03:00
|
|
|
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-08-01 23:03:59 +03:00
|
|
|
android:importantForAccessibility="no"
|
2019-11-05 20:36:40 +03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-05-10 23:34:13 +03:00
|
|
|
tools:src="@sample/user_round_avatars" />
|
2019-11-05 20:36:40 +03:00
|
|
|
|
2020-07-10 23:35:51 +03:00
|
|
|
<TextView
|
2019-11-05 20:36:40 +03:00
|
|
|
android:id="@+id/itemUserId"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Subtitle"
|
2019-11-05 20:36:40 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?vctr_content_primary"
|
2019-11-05 20:36:40 +03:00
|
|
|
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"
|
2021-05-10 23:49:11 +03:00
|
|
|
tools:text="@sample/users.json/data/id" />
|
2019-11-05 20:36:40 +03:00
|
|
|
|
2020-07-10 23:35:51 +03:00
|
|
|
<TextView
|
2019-11-05 20:36:40 +03:00
|
|
|
android:id="@+id/itemUserName"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Body"
|
2019-11-05 20:36:40 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?vctr_content_secondary"
|
2019-11-05 20:36:40 +03:00
|
|
|
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"
|
2021-05-10 23:49:11 +03:00
|
|
|
tools:text="@sample/users.json/data/displayName"
|
2019-11-05 20:36:40 +03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2021-08-01 23:03:59 +03:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|