diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-06-15 14:05:33 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-06-15 14:05:33 +0000 |
commit | b57d381e94cbcc0ba6a9d233213b6a8e718efeb6 (patch) | |
tree | db7c80d76fcdfa32b41c4c6bfab074ea41e9696e /app/src/main/res/layout/fragment_view_imgur_images.xml | |
parent | e8e85b963143d111b13373ea225fe948e316de8e (diff) | |
download | infinity-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/fragment_view_imgur_images.xml')
-rw-r--r-- | app/src/main/res/layout/fragment_view_imgur_images.xml | 6 |
1 files changed, 5 insertions, 1 deletions
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" |