aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-06-15 14:05:33 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-06-15 14:05:33 +0000
commitb57d381e94cbcc0ba6a9d233213b6a8e718efeb6 (patch)
treedb7c80d76fcdfa32b41c4c6bfab074ea41e9696e /app/src/main/res/layout
parente8e85b963143d111b13373ea225fe948e316de8e (diff)
downloadinfinity-for-reddit-b57d381e94cbcc0ba6a9d233213b6a8e718efeb6.tar
infinity-for-reddit-b57d381e94cbcc0ba6a9d233213b6a8e718efeb6.tar.gz
infinity-for-reddit-b57d381e94cbcc0ba6a9d233213b6a8e718efeb6.tar.bz2
infinity-for-reddit-b57d381e94cbcc0ba6a9d233213b6a8e718efeb6.tar.lz
infinity-for-reddit-b57d381e94cbcc0ba6a9d233213b6a8e718efeb6.tar.xz
infinity-for-reddit-b57d381e94cbcc0ba6a9d233213b6a8e718efeb6.tar.zst
infinity-for-reddit-b57d381e94cbcc0ba6a9d233213b6a8e718efeb6.zip
Maybe fix java.lang.RuntimeException: Canvas: trying to draw too large bitmap. Fix many bugs.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_view_image.xml2
-rw-r--r--app/src/main/res/layout/fragment_view_imgur_images.xml6
2 files changed, 7 insertions, 1 deletions
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" />
<LinearLayout
diff --git a/app/src/main/res/layout/fragment_view_imgur_images.xml b/app/src/main/res/layout/fragment_view_imgur_images.xml
index a28346dc..63620c08 100644
--- a/app/src/main/res/layout/fragment_view_imgur_images.xml
+++ b/app/src/main/res/layout/fragment_view_imgur_images.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -15,7 +16,10 @@
<com.alexvasilkov.gestures.views.GestureImageView
android:id="@+id/image_view_view_imgur_image_fragment"
android:layout_width="match_parent"
- android:layout_height="match_parent" />
+ android:layout_height="match_parent"
+ android:adjustViewBounds="true"
+ android:scaleType="fitCenter"
+ app:gest_fillViewport="true" />
<LinearLayout
android:id="@+id/load_image_error_linear_layout_view_imgur_image_fragment"