aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/markdown_image_and_gif_block.xml
blob: fa340220e8d7ada2b6c5c857567f4233bccf828f (plain) (blame)
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:padding="8dp">

    <FrameLayout
        android:id="@+id/image_wrapper_relative_layout_markdown_image_and_gif_block"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ml.docilealligator.infinityforreddit.customviews.AspectRatioGifImageView
            android:id="@+id/image_view_markdown_image_and_gif_block"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:adjustViewBounds="true" />

        <ProgressBar
            android:id="@+id/progress_bar_markdown_image_and_gif_block"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center" />

        <TextView
            android:id="@+id/load_image_error_text_view_markdown_image_and_gif_block"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:fontFamily="?attr/font_family"
            android:gravity="center"
            android:text="@string/error_loading_image_tap_to_retry"
            android:textSize="?attr/font_default"
            android:visibility="gone"
            app:drawableTopCompat="@drawable/ic_error_outline_black_day_night_24dp" />

    </FrameLayout>

    <TextView
        android:id="@+id/caption_text_view_markdown_image_and_gif_block"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="4dp"
        android:layout_gravity="center_horizontal"
        android:fontFamily="?attr/font_family"
        android:gravity="center"
        android:textSize="?attr/font_default"
        android:visibility="gone" />

</LinearLayout>