aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-11-26 20:55:08 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-11-26 20:55:08 +0000
commite7b4b8aa8100327d83e99f2f0b3362a318e2c0eb (patch)
tree22925bca447c89c24546a1bc734570fb7b1d39c1 /app/src/main/res
parent4bcd60aafdfdc28c764c8239c82dab0886e40781 (diff)
downloadinfinity-for-reddit-e7b4b8aa8100327d83e99f2f0b3362a318e2c0eb.tar
infinity-for-reddit-e7b4b8aa8100327d83e99f2f0b3362a318e2c0eb.tar.gz
infinity-for-reddit-e7b4b8aa8100327d83e99f2f0b3362a318e2c0eb.tar.bz2
infinity-for-reddit-e7b4b8aa8100327d83e99f2f0b3362a318e2c0eb.tar.lz
infinity-for-reddit-e7b4b8aa8100327d83e99f2f0b3362a318e2c0eb.tar.xz
infinity-for-reddit-e7b4b8aa8100327d83e99f2f0b3362a318e2c0eb.tar.zst
infinity-for-reddit-e7b4b8aa8100327d83e99f2f0b3362a318e2c0eb.zip
Show cations of preview images and gifs.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/markdown_image_and_gif_block.xml55
1 files changed, 37 insertions, 18 deletions
diff --git a/app/src/main/res/layout/markdown_image_and_gif_block.xml b/app/src/main/res/layout/markdown_image_and_gif_block.xml
index 264a80e8..8e0aad32 100644
--- a/app/src/main/res/layout/markdown_image_and_gif_block.xml
+++ b/app/src/main/res/layout/markdown_image_and_gif_block.xml
@@ -1,33 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/image_wrapper_relative_layout_markdown_image_and_gif_block"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:orientation="vertical"
android:padding="8dp">
- <ml.docilealligator.infinityforreddit.customviews.AspectRatioGifImageView
- android:id="@+id/image_view_markdown_image_and_gif_block"
+ <FrameLayout
+ android:id="@+id/image_wrapper_relative_layout_markdown_image_and_gif_block"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:adjustViewBounds="true" />
+ android:layout_height="wrap_content">
- <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" />
+ <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_24dp" />
+
+ </FrameLayout>
<TextView
- android:id="@+id/load_image_error_text_view_markdown_image_and_gif_block"
- android:layout_width="match_parent"
+ android:id="@+id/caption_text_view_markdown_image_and_gif_block"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center"
+ android:layout_marginTop="4dp"
+ android:layout_gravity="center_horizontal"
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_24dp" />
+ android:visibility="gone" />
-</FrameLayout> \ No newline at end of file
+</LinearLayout>