Add an gallery post indicator in PostDetailRecyclerViewAdapter.

This commit is contained in:
Alex Ning 2021-07-21 19:52:02 +08:00
parent fa11426101
commit 2a47c924f5
2 changed files with 21 additions and 7 deletions

View File

@ -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"

View File

@ -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"