2020-07-01 17:08:28 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-09-05 17:02:54 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-07-01 17:08:28 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-09-05 17:02:54 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-13 10:21:14 +00:00
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-12-28 02:14:44 +00:00
|
|
|
android:paddingStart="16dp"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:paddingTop="8dp"
|
2020-12-28 02:14:44 +00:00
|
|
|
android:paddingEnd="16dp"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:paddingBottom="8dp">
|
2020-07-01 17:08:28 +00:00
|
|
|
|
2020-09-05 17:02:54 +00:00
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
2021-04-13 15:17:23 +00:00
|
|
|
android:id="@+id/profile_pic"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2020-09-05 17:02:54 +00:00
|
|
|
app:actualImageScaleType="centerCrop"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:roundAsCircle="true"
|
2020-09-13 10:21:14 +00:00
|
|
|
tools:background="@mipmap/ic_launcher" />
|
2020-07-01 17:08:28 +00:00
|
|
|
|
2020-09-05 17:02:54 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
2021-04-13 15:17:23 +00:00
|
|
|
android:id="@+id/title"
|
2020-09-05 17:02:54 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:gravity="center_vertical"
|
2021-04-13 15:17:23 +00:00
|
|
|
android:maxLines="1"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:paddingStart="16dp"
|
2020-09-05 17:02:54 +00:00
|
|
|
android:paddingEnd="4dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
2021-04-13 15:17:23 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/subtitle"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/verified"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/profile_pic"
|
2020-09-05 17:02:54 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="username" />
|
2020-07-01 17:08:28 +00:00
|
|
|
|
2020-09-05 17:02:54 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
2021-04-13 15:17:23 +00:00
|
|
|
android:id="@+id/subtitle"
|
2020-09-05 17:02:54 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:gravity="center_vertical"
|
2021-04-13 15:17:23 +00:00
|
|
|
android:maxLines="1"
|
2020-09-18 19:18:14 +00:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="0dp"
|
2020-09-13 10:21:14 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
2020-09-05 17:02:54 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-04-13 15:17:23 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/delete"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/profile_pic"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/title"
|
2020-09-13 10:21:14 +00:00
|
|
|
tools:text="full name"
|
|
|
|
tools:visibility="visible" />
|
2020-07-01 17:08:28 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2021-04-13 15:17:23 +00:00
|
|
|
android:id="@+id/verified"
|
2020-09-05 17:02:54 +00:00
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:layout_gravity="end"
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:visibility="gone"
|
2021-04-13 15:17:23 +00:00
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/title"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/subtitle"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/title"
|
2020-09-05 17:02:54 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/verified"
|
|
|
|
tools:visibility="visible" />
|
2021-04-13 15:17:23 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/delete"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:src="@drawable/ic_close_24"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:visibility="visible" />
|
2020-09-05 17:02:54 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|