<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".fragments.ViewImgurImageFragment">

    <com.google.android.material.loadingindicator.LoadingIndicator
        android:id="@+id/progress_bar_view_reddit_gallery_image_or_gif_fragment"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center" />

    <com.github.piasy.biv.view.BigImageView
        android:id="@+id/image_view_view_reddit_gallery_image_or_gif_fragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:optimizeDisplay="true"
        app:tapToRetry="false" />

    <LinearLayout
        android:id="@+id/load_image_error_linear_layout_view_reddit_gallery_image_or_gif_fragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:drawableTop="@drawable/ic_error_outline_white_24dp"
            android:fontFamily="?attr/font_family"
            android:gravity="center"
            android:text="@string/error_loading_image_tap_to_retry"
            android:textColor="@android:color/white"
            android:textSize="?attr/font_default" />

    </LinearLayout>

    <com.google.android.material.bottomappbar.BottomAppBar
        android:id="@+id/bottom_navigation_view_reddit_gallery_image_or_gif_fragment"
        style="@style/Widget.MaterialComponents.BottomAppBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:minHeight="0dp"
        app:paddingBottomSystemWindowInsets="false"
        android:backgroundTint="#80000000"
        app:elevation="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:animateLayoutChanges="true">

            <LinearLayout
                android:id="@+id/caption_layout_view_reddit_gallery_image_or_gif_fragment"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginBottom="16dp"
                android:layout_marginEnd="16dp"
                android:visibility="gone">

                <TextView
                    android:id="@+id/caption_text_view_view_reddit_gallery_image_or_gif_fragment"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:maxLength="180"
                    android:fontFamily="?attr/content_font_family"
                    android:textColor="#FFFFFF"
                    android:textSize="?attr/content_font_default"
                    android:visibility="gone" />

                <TextView
                    android:id="@+id/caption_url_text_view_view_reddit_gallery_image_or_gif_fragment"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8dp"
                    android:ellipsize="end"
                    android:maxLength="180"
                    android:fontFamily="?attr/content_font_family"
                    android:textColor="#FFFFFF"
                    android:textColorLink="#FFFFFF"
                    android:textSize="?attr/content_font_default"
                    android:textStyle="bold"
                    android:visibility="gone" />

            </LinearLayout>

            <LinearLayout
                android:id="@+id/bottom_app_bar_menu_view_reddit_gallery_image_or_gif_fragment"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="gone">

                <TextView
                    android:id="@+id/title_text_view_view_reddit_gallery_image_or_gif_fragment"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:layout_weight="1"
                    android:ellipsize="end"
                    android:fontFamily="?attr/font_family"
                    android:gravity="center_vertical"
                    android:maxLines="1"
                    android:paddingTop="8dp"
                    android:paddingBottom="8dp"
                    android:textColor="#FFFFFF"
                    android:textSize="?attr/font_20" />

                <ImageView
                    android:id="@+id/download_image_view_view_reddit_gallery_image_or_gif_fragment"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="?attr/selectableItemBackgroundBorderless"
                    android:padding="16dp"
                    android:src="@drawable/ic_file_download_toolbar_white_24dp" />

                <ImageView
                    android:id="@+id/share_image_view_view_reddit_gallery_image_or_gif_fragment"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="?attr/selectableItemBackgroundBorderless"
                    android:padding="16dp"
                    android:src="@drawable/ic_share_toolbar_white_24dp" />

                <ImageView
                    android:id="@+id/wallpaper_image_view_view_reddit_gallery_image_or_gif_fragment"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginEnd="16dp"
                    android:background="?attr/selectableItemBackgroundBorderless"
                    android:padding="16dp"
                    android:src="@drawable/ic_wallpaper_24dp" />
            </LinearLayout>

        </LinearLayout>

    </com.google.android.material.bottomappbar.BottomAppBar>

</androidx.coordinatorlayout.widget.CoordinatorLayout>