aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/activity_fullscreen_message.xml
blob: b97117c8be08a48cdccb0ec20ee01bc27f16a010 (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"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@android:color/black">

    <include
        android:id="@+id/toolbar"
        layout="@layout/tool_bar">
    </include>

    <com.github.chrisbanes.photoview.PhotoView
        android:id="@id/message_image_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:adjustViewBounds="true"
        android:visibility="gone" />

    <com.github.rtoshiro.view.video.FullscreenVideoLayout
        android:id="@id/message_video_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone" />

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:id="@+id/frameLayout">

        <ImageButton
            android:layout_margin="15dp"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:src="@drawable/ic_share_white_24dp"
            android:background="@drawable/circle"
            android:id="@+id/imageButton"
            android:layout_gravity="right|top" />
    </FrameLayout>
</RelativeLayout>