2017-01-31 15:51:02 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-04-10 04:13:25 +10:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-05-11 04:08:36 +10:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-10-18 09:20:26 +11:00
|
|
|
android:id="@+id/account_container"
|
2017-01-31 15:51:02 +11:00
|
|
|
android:layout_width="match_parent"
|
2019-07-20 04:10:20 +10:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2017-03-12 22:45:36 +11:00
|
|
|
android:layout_height="72dp"
|
2019-05-11 04:08:36 +10:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp">
|
2017-01-31 15:51:02 +11:00
|
|
|
|
2019-05-26 16:46:08 +10:00
|
|
|
<ImageView
|
2017-10-18 09:20:26 +11:00
|
|
|
android:id="@+id/account_avatar"
|
2017-03-12 22:45:36 +11:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2019-04-10 04:13:25 +10:00
|
|
|
android:layout_marginEnd="24dp"
|
2019-05-11 04:08:36 +10:00
|
|
|
android:foregroundGravity="center_vertical"
|
2019-04-10 04:13:25 +10:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-05-11 04:08:36 +10:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:src="@drawable/avatar_default" />
|
2019-04-10 04:13:25 +10:00
|
|
|
|
2019-05-26 16:46:08 +10:00
|
|
|
<ImageView
|
2019-04-10 04:13:25 +10:00
|
|
|
android:id="@+id/account_avatar_inset"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:contentDescription="@null"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/account_avatar"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/account_avatar"
|
2020-06-05 04:16:48 +10:00
|
|
|
tools:src="#000"
|
2019-04-10 04:13:25 +10:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2019-05-11 04:08:36 +10:00
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/account_display_name"
|
2019-05-20 05:11:36 +10:00
|
|
|
android:layout_width="0dp"
|
2019-05-11 04:08:36 +10:00
|
|
|
android:layout_height="wrap_content"
|
2019-04-10 04:13:25 +10:00
|
|
|
android:layout_marginStart="14dp"
|
2019-05-11 04:08:36 +10:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_large"
|
|
|
|
android:textStyle="normal|bold"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/account_username"
|
2019-05-20 05:11:36 +10:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-05-11 04:08:36 +10:00
|
|
|
app:layout_constraintStart_toEndOf="@id/account_avatar"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2019-05-20 05:11:36 +10:00
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
2019-05-11 04:08:36 +10:00
|
|
|
tools:text="Display name" />
|
2017-01-31 15:51:02 +11:00
|
|
|
|
2019-05-11 04:08:36 +10:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/account_username"
|
2019-05-20 05:11:36 +10:00
|
|
|
android:layout_width="0dp"
|
2019-05-11 04:08:36 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="14dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-05-20 05:11:36 +10:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-05-11 04:08:36 +10:00
|
|
|
app:layout_constraintStart_toEndOf="@id/account_avatar"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/account_display_name"
|
|
|
|
tools:text="\@username" />
|
2017-01-31 15:51:02 +11:00
|
|
|
|
2019-04-10 04:13:25 +10:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|