83696b5c7f
* animate gif avatars * add setting to enable avatar animation * cleanup code
48 lines
No EOL
1.7 KiB
XML
48 lines
No EOL
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:padding="8dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/avatar"
|
|
android:layout_width="42dp"
|
|
android:layout_height="42dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="8dp"
|
|
android:contentDescription="@null"
|
|
tools:src="@drawable/avatar_default" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_toEndOf="@id/avatar"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
android:id="@+id/display_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="?attr/status_text_large"
|
|
android:textStyle="normal|bold"
|
|
tools:text="Conny Duck" />
|
|
|
|
<TextView
|
|
android:id="@+id/username"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="?attr/status_text_medium"
|
|
tools:text="\@ConnyDuck" />
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout> |