From 3cae2b0dbadfcc109f8e7f52170722c664638d1f Mon Sep 17 00:00:00 2001 From: Docile-Alligator Date: Fri, 11 Mar 2022 17:00:23 +0800 Subject: Load image after the AspectRatioGifImageView's height is determined in PostRecyclerViewAdapter to prevent blurry images. --- app/src/main/res/layout/item_post_detail_gallery.xml | 3 +-- app/src/main/res/layout/item_post_detail_image_and_gif_autoplay.xml | 3 +-- app/src/main/res/layout/item_post_detail_link.xml | 3 +-- app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml | 3 +-- app/src/main/res/layout/item_post_detail_video_autoplay.xml | 1 - 5 files changed, 4 insertions(+), 9 deletions(-) (limited to 'app/src/main/res') 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 2b3ed1ef..a73e1965 100644 --- a/app/src/main/res/layout/item_post_detail_gallery.xml +++ b/app/src/main/res/layout/item_post_detail_gallery.xml @@ -216,8 +216,7 @@ 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" /> + android:adjustViewBounds="true" /> + android:adjustViewBounds="true" /> + android:adjustViewBounds="true" /> + android:adjustViewBounds="true" />