aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/link_layout.xml
blob: bdd7469bec3baf8ecaa1c233737c5720c99aae12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?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:id="@+id/rich_link_card"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_margin="5dp"
    android:gravity="center">

    <ImageView
        android:id="@+id/rich_link_image"
        android:layout_width="80dp"
        android:layout_height="80dp"
        android:padding="2dp"
        android:scaleType="centerCrop" />

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <TextView
            android:id="@+id/rich_link_title"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:ellipsize="end"
            android:maxLines="2"
            android:padding="2dp"
            android:textAppearance="@style/TextAppearance.Conversations.Body2"
            tools:text="Data" />

        <TextView
            android:id="@+id/rich_link_desp"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:ellipsize="end"
            android:maxLines="3"
            android:padding="2dp"
            android:textAppearance="@style/TextAppearance.Conversations.Status"
            tools:text="Data" />

    </LinearLayout>
</LinearLayout>