diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-07-14 15:26:19 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-07-14 15:26:19 +0000 |
commit | c97120528bd158c7ff430846ac04acfa74f78058 (patch) | |
tree | 5e090acc0902b8c5941734caf4f498534c1386a1 /app/src/main/res | |
parent | 67cb832c46895193c85a2b9d1b5c95873588ad26 (diff) | |
download | infinity-for-reddit-c97120528bd158c7ff430846ac04acfa74f78058.tar infinity-for-reddit-c97120528bd158c7ff430846ac04acfa74f78058.tar.gz infinity-for-reddit-c97120528bd158c7ff430846ac04acfa74f78058.tar.bz2 infinity-for-reddit-c97120528bd158c7ff430846ac04acfa74f78058.tar.lz infinity-for-reddit-c97120528bd158c7ff430846ac04acfa74f78058.tar.xz infinity-for-reddit-c97120528bd158c7ff430846ac04acfa74f78058.tar.zst infinity-for-reddit-c97120528bd158c7ff430846ac04acfa74f78058.zip |
Use SubsamplingScaleImageView in ViewImgurImageFragment. Probably fix gif too small in AspectRatioGifImageView.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/anim/slide_out_down.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/anim/slide_out_up.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_view_imgur_images.xml | 6 |
3 files changed, 2 insertions, 28 deletions
diff --git a/app/src/main/res/anim/slide_out_down.xml b/app/src/main/res/anim/slide_out_down.xml deleted file mode 100644 index 4c64d6c4..00000000 --- a/app/src/main/res/anim/slide_out_down.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<set xmlns:android="http://schemas.android.com/apk/res/android"> - <translate - android:duration="@android:integer/config_shortAnimTime" - android:fromYDelta="0" - android:toYDelta="+50%p" /> - <alpha - android:duration="@android:integer/config_shortAnimTime" - android:fromAlpha="1.0" - android:toAlpha="0.0" /> -</set> diff --git a/app/src/main/res/anim/slide_out_up.xml b/app/src/main/res/anim/slide_out_up.xml deleted file mode 100644 index 945e2b7e..00000000 --- a/app/src/main/res/anim/slide_out_up.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<set xmlns:android="http://schemas.android.com/apk/res/android"> - <translate - android:duration="@android:integer/config_shortAnimTime" - android:fromYDelta="0" - android:toYDelta="-50%p" /> - <alpha - android:duration="@android:integer/config_shortAnimTime" - android:fromAlpha="1.0" - android:toAlpha="0.0" /> -</set> 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 63620c08..20110897 100644 --- a/app/src/main/res/layout/fragment_view_imgur_images.xml +++ b/app/src/main/res/layout/fragment_view_imgur_images.xml @@ -13,13 +13,11 @@ android:layout_height="wrap_content" android:layout_centerInParent="true" /> - <com.alexvasilkov.gestures.views.GestureImageView + <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView android:id="@+id/image_view_view_imgur_image_fragment" android:layout_width="match_parent" android:layout_height="match_parent" - android:adjustViewBounds="true" - android:scaleType="fitCenter" - app:gest_fillViewport="true" /> + app:quickScaleEnabled="false" /> <LinearLayout android:id="@+id/load_image_error_linear_layout_view_imgur_image_fragment" |