From b57d381e94cbcc0ba6a9d233213b6a8e718efeb6 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 15 Jun 2020 22:05:33 +0800 Subject: Maybe fix java.lang.RuntimeException: Canvas: trying to draw too large bitmap. Fix many bugs. --- app/src/main/res/layout/activity_view_image.xml | 2 ++ app/src/main/res/layout/fragment_view_imgur_images.xml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_view_image.xml b/app/src/main/res/layout/activity_view_image.xml index c094cb47..9a80a732 100644 --- a/app/src/main/res/layout/activity_view_image.xml +++ b/app/src/main/res/layout/activity_view_image.xml @@ -28,6 +28,8 @@ android:id="@+id/image_view_view_image_activity" android:layout_width="match_parent" android:layout_height="match_parent" + android:adjustViewBounds="true" + android:scaleType="fitCenter" app:gest_fillViewport="true" /> + android:layout_height="match_parent" + android:adjustViewBounds="true" + android:scaleType="fitCenter" + app:gest_fillViewport="true" />