diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-07-21 11:52:02 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-07-21 11:52:02 +0000 |
commit | 2a47c924f5b60b83b82770b5ca355eab9459b882 (patch) | |
tree | 0af90c14c23b24dc716cfce6a957514ca90af3f6 /app | |
parent | fa114261019c7e4ba33a0affbd712eee9c99a348 (diff) | |
download | infinity-for-reddit-2a47c924f5b60b83b82770b5ca355eab9459b882.tar infinity-for-reddit-2a47c924f5b60b83b82770b5ca355eab9459b882.tar.gz infinity-for-reddit-2a47c924f5b60b83b82770b5ca355eab9459b882.tar.bz2 infinity-for-reddit-2a47c924f5b60b83b82770b5ca355eab9459b882.tar.lz infinity-for-reddit-2a47c924f5b60b83b82770b5ca355eab9459b882.tar.xz infinity-for-reddit-2a47c924f5b60b83b82770b5ca355eab9459b882.tar.zst infinity-for-reddit-2a47c924f5b60b83b82770b5ca355eab9459b882.zip |
Add an gallery post indicator in PostDetailRecyclerViewAdapter.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/item_post_detail_gallery.xml | 24 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml | 4 |
2 files changed, 21 insertions, 7 deletions
diff --git a/app/src/main/res/layout/item_post_detail_gallery.xml b/app/src/main/res/layout/item_post_detail_gallery.xml index 2b3a0e99..7944c5c8 100644 --- a/app/src/main/res/layout/item_post_detail_gallery.xml +++ b/app/src/main/res/layout/item_post_detail_gallery.xml @@ -208,12 +208,26 @@ android:layout_height="wrap_content" android:visibility="gone"> - <ml.docilealligator.infinityforreddit.customviews.AspectRatioGifImageView - android:id="@+id/image_view_item_post_detail_gallery" + <FrameLayout android:layout_width="match_parent" - android:layout_height="wrap_content" - android:adjustViewBounds="true" - android:scaleType="fitStart" /> + android:layout_height="wrap_content"> + + <ml.docilealligator.infinityforreddit.customviews.AspectRatioGifImageView + android:id="@+id/image_view_item_post_detail_gallery" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:adjustViewBounds="true" + android:scaleType="fitStart" /> + + <ImageView + android:layout_width="36dp" + android:layout_height="36dp" + android:layout_margin="16dp" + android:layout_gravity="start" + android:background="@drawable/play_button_round_background" + android:src="@drawable/ic_gallery_reverse_color_24dp" /> + + </FrameLayout> <RelativeLayout android:id="@+id/load_wrapper_item_post_detail_gallery" diff --git a/app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml b/app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml index ed2a28d9..c2930a41 100644 --- a/app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml +++ b/app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml @@ -217,8 +217,8 @@ android:scaleType="fitStart" /> <ImageView - android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_width="36dp" + android:layout_height="36dp" android:layout_margin="16dp" android:layout_gravity="start" android:background="@drawable/play_button_round_background" |