diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-11-17 13:58:33 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-11-17 13:58:33 +0000 |
commit | adb60910debc552ab665e7685ee288dd0c0ee93a (patch) | |
tree | c4dcc7406d637069ad0d137bb62e33e41555a9e5 /app/src/main/res/layout | |
parent | 5f1a23a2a453258d733b080a3e8f5946b7333157 (diff) | |
download | infinity-for-reddit-adb60910debc552ab665e7685ee288dd0c0ee93a.tar infinity-for-reddit-adb60910debc552ab665e7685ee288dd0c0ee93a.tar.gz infinity-for-reddit-adb60910debc552ab665e7685ee288dd0c0ee93a.tar.bz2 infinity-for-reddit-adb60910debc552ab665e7685ee288dd0c0ee93a.tar.lz infinity-for-reddit-adb60910debc552ab665e7685ee288dd0c0ee93a.tar.xz infinity-for-reddit-adb60910debc552ab665e7685ee288dd0c0ee93a.tar.zst infinity-for-reddit-adb60910debc552ab665e7685ee288dd0c0ee93a.zip |
Start showing images from preview.redd.it in posts.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/markdown_image_and_gif_block.xml | 31 |
1 files changed, 31 insertions, 0 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 new file mode 100644 index 00000000..95746933 --- /dev/null +++ b/app/src/main/res/layout/markdown_image_and_gif_block.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + 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:drawableTop="@drawable/ic_error_outline_black_24dp" + 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" /> + +</FrameLayout>
\ No newline at end of file |