aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/message_content.xml
blob: 37f374f65b0451e41e22fa629e55543d7a5f95af (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <com.makeramen.roundedimageview.RoundedImageView
        android:id="@+id/message_image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="4dp"
        android:layout_marginTop="2dp"
        android:adjustViewBounds="true"
        android:longClickable="true"
        android:maxHeight="500dp"
        android:maxWidth="500dp"
        android:scaleType="centerCrop"
        app:riv_border_color="?attr/color_border"
        app:riv_border_width="1dp"
        app:riv_corner_radius="5dp" />

    <de.pixart.messenger.ui.widget.CopyTextView
        android:id="@+id/message_body"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:autoLink="web"
        android:longClickable="true"
        android:textAppearance="@style/TextAppearance.Conversations.Body1" />

    <Button
        android:id="@+id/download_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:longClickable="true"
        android:visibility="gone" />

    <RelativeLayout
        android:id="@+id/audio_player"
        android:layout_width="@dimen/audio_player_width"
        android:layout_height="wrap_content"
        android:visibility="gone">

        <ImageButton
            android:id="@+id/play_pause"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:alpha="?attr/icon_alpha"
            android:background="?android:selectableItemBackground" />

        <TextView
            android:id="@+id/runtime"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:paddingBottom="16dp"
            android:paddingRight="16dp"
            android:textAppearance="@style/TextAppearance.Conversations.Caption" />

        <SeekBar
            android:id="@+id/progress"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/runtime"
            android:layout_centerVertical="true"
            android:layout_toRightOf="@+id/play_pause"
            android:progress="100" />
    </RelativeLayout>
</merge>