Load image after the AspectRatioGifImageView's height is determined in PostRecyclerViewAdapter to prevent blurry images.

This commit is contained in:
Docile-Alligator
2022-03-11 17:00:23 +08:00
parent 20e4798d34
commit 3cae2b0dba
7 changed files with 78 additions and 21 deletions

View File

@@ -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" />
<ImageView
android:id="@+id/video_or_gif_indicator_image_view_item_post_detail"

View File

@@ -211,8 +211,7 @@
android:id="@+id/image_view_item_post_detail_image_and_gif_autoplay"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitStart" />
android:adjustViewBounds="true" />
<RelativeLayout
android:id="@+id/load_wrapper_item_post_detail_image_and_gif_autoplay"

View File

@@ -221,8 +221,7 @@
android:id="@+id/image_view_item_post_detail_link"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitStart" />
android:adjustViewBounds="true" />
<RelativeLayout
android:id="@+id/load_wrapper_item_post_detail_link"

View File

@@ -213,8 +213,7 @@
android:id="@+id/image_view_item_post_detail_video_and_gif_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitStart" />
android:adjustViewBounds="true" />
<ImageView
android:id="@+id/video_or_gif_indicator_image_view_item_post_detail"

View File

@@ -221,7 +221,6 @@
android:id="@+id/preview_image_view_item_post_detail_video_autoplay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitStart"
android:visibility="gone" />
<ImageView