From 83eea69459eb56c964f25b5565766108d8fc25d6 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 13 Jul 2020 00:24:25 +0800 Subject: Only use SubsamplingScaleImageView to load images in ViewHolders for image in PostRecyclerViewAdapter and CommentAndPostRecyclerViewAdapter. --- .../res/layout/item_post_detail_gif_autoplay.xml | 8 +- app/src/main/res/layout/item_post_detail_image.xml | 1 + app/src/main/res/layout/item_post_detail_link.xml | 6 +- .../item_post_detail_video_and_gif_preview.xml | 6 +- .../res/layout/item_post_detail_video_autoplay.xml | 6 +- app/src/main/res/layout/item_post_gif_autoplay.xml | 325 ++++++++++++++++++++ app/src/main/res/layout/item_post_image.xml | 329 +++++++++++++++++++++ .../layout/item_post_image_and_gif_autoplay.xml | 325 -------------------- 8 files changed, 663 insertions(+), 343 deletions(-) create mode 100644 app/src/main/res/layout/item_post_gif_autoplay.xml create mode 100644 app/src/main/res/layout/item_post_image.xml delete mode 100644 app/src/main/res/layout/item_post_image_and_gif_autoplay.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/item_post_detail_gif_autoplay.xml b/app/src/main/res/layout/item_post_detail_gif_autoplay.xml index f81fffd6..9a86fc1a 100644 --- a/app/src/main/res/layout/item_post_detail_gif_autoplay.xml +++ b/app/src/main/res/layout/item_post_detail_gif_autoplay.xml @@ -200,16 +200,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> - + android:scaleType="fitStart" /> diff --git a/app/src/main/res/layout/item_post_detail_link.xml b/app/src/main/res/layout/item_post_detail_link.xml index ba51e6a5..a0868b07 100644 --- a/app/src/main/res/layout/item_post_detail_link.xml +++ b/app/src/main/res/layout/item_post_detail_link.xml @@ -210,14 +210,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> - + android:scaleType="fitStart" /> - + android:scaleType="fitStart" /> - + android:visibility="gone" /> diff --git a/app/src/main/res/layout/item_post_gif_autoplay.xml b/app/src/main/res/layout/item_post_gif_autoplay.xml new file mode 100644 index 00000000..504cb903 --- /dev/null +++ b/app/src/main/res/layout/item_post_gif_autoplay.xml @@ -0,0 +1,325 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_image.xml b/app/src/main/res/layout/item_post_image.xml new file mode 100644 index 00000000..2a1f8513 --- /dev/null +++ b/app/src/main/res/layout/item_post_image.xml @@ -0,0 +1,329 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_image_and_gif_autoplay.xml b/app/src/main/res/layout/item_post_image_and_gif_autoplay.xml deleted file mode 100644 index 39bf4933..00000000 --- a/app/src/main/res/layout/item_post_image_and_gif_autoplay.xml +++ /dev/null @@ -1,325 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file -- cgit v1.2.3