28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/media"
|
|
android:contentDescription="@string/thumbnail"
|
|
android:layout_margin="5dp"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
tools:src="@tools:sample/avatars"
|
|
android:layout_gravity="center"
|
|
android:scaleType="centerCrop" />
|
|
<TextView
|
|
android:id="@+id/media_name"
|
|
android:contentDescription="@string/thumbnail"
|
|
android:layout_margin="5dp"
|
|
android:layout_marginStart="10dp"
|
|
android:ellipsize="end"
|
|
android:layout_gravity="center"
|
|
android:maxLines="1"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
tools:text="@tools:sample/lorem/random"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout> |