aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/activity_media_viewer.xml
blob: c82ed1603a80cf3eaa5b760c94320a319ee9327c (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
<?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.google.android.exoplayer2.ui.SimpleExoPlayerView
            android:id="@+id/messageVideoView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:played_color="?attr/colorAccent"
            app:scrubber_color="?attr/colorAccent"
            app:show_shuffle_button="false"
            app:show_buffering="never"
            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>