Changes the autocomplete list to show the username, display name, and avatar of each suggestion for @ mentions.
parent
7c684d33ce
commit
00ba3e4df0
@ -0,0 +1,50 @@ |
||||
<?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" |
||||
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" |
||||
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> |
Loading…
Reference in new issue