2017-06-19 13:34:48 +10:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="42dp"
|
|
|
|
android:layout_centerVertical="true"
|
2017-07-12 16:09:07 +10:00
|
|
|
android:layout_marginEnd="8dp"
|
2017-06-19 13:34:48 +10:00
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:id="@+id/avatar"
|
|
|
|
android:src="@drawable/avatar_default"
|
|
|
|
android:contentDescription="@null" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
2017-07-12 16:09:07 +10:00
|
|
|
android:layout_toEndOf="@id/avatar"
|
2017-06-19 13:34:48 +10:00
|
|
|
android:layout_toRightOf="@id/avatar"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/display_name"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textStyle="normal|bold" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="4dp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/username"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textColor="?android:textColorSecondary" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|