link_description.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android"
 3    xmlns:app="http://schemas.android.com/apk/res-auto">
 4
 5    <RelativeLayout
 6        android:layout_width="match_parent"
 7        android:layout_height="wrap_content"
 8        android:paddingHorizontal="4dp"
 9        android:paddingVertical="4dp"
10        android:descendantFocusability="blocksDescendants"
11        android:background="@drawable/background_link_description">
12
13        <LinearLayout
14            android:layout_width="match_parent"
15            android:layout_height="wrap_content"
16            android:paddingHorizontal="6dp"
17            android:orientation="vertical">
18
19            <TextView
20                android:id="@+id/title"
21                android:layout_width="wrap_content"
22                android:layout_height="wrap_content"
23                android:maxLines="1"
24                android:textColor="?colorPrimary"
25                android:textAppearance="?textAppearanceTitleSmall" />
26
27            <TextView
28                android:id="@+id/url"
29                android:layout_width="wrap_content"
30                android:layout_height="wrap_content"
31                android:maxLines="1"
32                android:textColor="?colorOnSurface"
33                android:textAppearance="?textAppearanceLabelSmall" />
34
35            <TextView
36                android:id="@+id/description"
37                android:layout_width="wrap_content"
38                android:layout_height="wrap_content"
39                android:textColor="?colorOnSurface"
40                android:textAppearance="?textAppearanceBodyMedium" />
41
42        </LinearLayout>
43
44        <ImageButton
45            android:id="@+id/play_button"
46            android:visibility="gone"
47            android:layout_width="wrap_content"
48            android:layout_height="wrap_content"
49            android:layout_alignParentBottom="true"
50            android:layout_alignParentEnd="true"
51            android:focusable="false"
52            android:focusableInTouchMode="false"
53            android:background="?attr/selectableItemBackgroundBorderless"
54            android:src="@drawable/ic_play_circle_24dp" />
55
56    </RelativeLayout>
57
58</layout>