aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/activity_media_viewer.xml
blob: cca277e5147aa301f777516faedcf3a12cc58536 (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
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/black"
        android:orientation="vertical">

        <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
            android:id="@+id/messageImageView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:adjustViewBounds="true"
            android:visibility="gone" />

        <pl.droidsonroids.gif.GifImageView
            android:id="@+id/messageGifView"
            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/messageVideoView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="gone" />

        <com.leinardi.android.speeddial.SpeedDialOverlayLayout
            android:id="@+id/overlay"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="?color_background_overlay" />

        <com.leinardi.android.speeddial.SpeedDialView
            android:id="@+id/speed_dial"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:layout_alignParentBottom="true"
            app:backgroundTint="?attr/colorAccent"
            app:sdMainFabClosedBackgroundColor="?attr/colorAccent"
            app:sdMainFabClosedSrc="@drawable/ic_menu_white_24dp"
            app:sdMainFabOpenedBackgroundColor="?attr/colorAccent"
            app:sdMainFabOpenedSrc="@drawable/ic_close_white_24dp"
            app:sdOverlayLayout="@id/overlay" />
    </RelativeLayout>
</layout>