message_inline_embed_url.xml 2.32 KB
Newer Older
Yusuke Iwaki's avatar
Yusuke Iwaki committed
1 2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
        xmlns:fresco="http://schemas.android.com/apk/res-auto"
Yusuke Iwaki's avatar
Yusuke Iwaki committed
4 5 6 7 8
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:background="?attr/selectableItemBackground"
        android:layout_margin="4dp"
Tiago Cunha's avatar
Tiago Cunha committed
9 10
        android:padding="4dp">

Yusuke Iwaki's avatar
Yusuke Iwaki committed
11 12 13 14 15
    <View
            android:layout_width="3dp"
            android:layout_height="match_parent"
            android:layout_marginEnd="5dp"
            android:background="@color/inline_attachment_quote_line"
Tiago Cunha's avatar
Tiago Cunha committed
16
            android:layout_marginRight="5dp" />
17

18
    <com.facebook.drawee.view.SimpleDraweeView
Yusuke Iwaki's avatar
Yusuke Iwaki committed
19
            android:id="@+id/image"
20 21
            android:layout_width="60dp"
            android:layout_height="60dp"
Yusuke Iwaki's avatar
Yusuke Iwaki committed
22 23
            android:layout_marginTop="2dp"
            android:layout_marginEnd="8dp"
24
            fresco:actualImageScaleType="fitCenter"
Tiago Cunha's avatar
Tiago Cunha committed
25
            android:layout_marginRight="8dp" />
Yusuke Iwaki's avatar
Yusuke Iwaki committed
26

Yusuke Iwaki's avatar
Yusuke Iwaki committed
27 28 29 30
    <LinearLayout
            android:layout_width="0px"
            android:layout_height="wrap_content"
            android:layout_weight="1"
Tiago Cunha's avatar
Tiago Cunha committed
31
            android:orientation="vertical">
Yusuke Iwaki's avatar
Yusuke Iwaki committed
32

Yusuke Iwaki's avatar
Yusuke Iwaki committed
33 34 35 36 37 38
        <TextView
                android:id="@+id/hostname"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="2dp"
                android:layout_marginBottom="2dp"
39
                android:textColor="@color/color_embed_hostname"
Tiago Cunha's avatar
Tiago Cunha committed
40
                android:enabled="false" />
Yusuke Iwaki's avatar
Yusuke Iwaki committed
41

Yusuke Iwaki's avatar
Yusuke Iwaki committed
42 43 44 45 46 47
        <TextView
                android:id="@+id/title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="2dp"
                android:layout_marginBottom="2dp"
Tiago Cunha's avatar
Tiago Cunha committed
48
                android:textAppearance="@style/TextAppearance.RocketChat.MessageAttachment.Title" />
Yusuke Iwaki's avatar
Yusuke Iwaki committed
49

Yusuke Iwaki's avatar
Yusuke Iwaki committed
50 51 52 53 54 55
        <TextView
                android:id="@+id/description"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="2dp"
                android:layout_marginBottom="2dp"
Tiago Cunha's avatar
Tiago Cunha committed
56
                android:textAppearance="@style/TextAppearance.RocketChat.MessageAttachment.Description" />
Yusuke Iwaki's avatar
Yusuke Iwaki committed
57

Yusuke Iwaki's avatar
Yusuke Iwaki committed
58
    </LinearLayout>
Yusuke Iwaki's avatar
Yusuke Iwaki committed
59 60

</LinearLayout>