From 8000d67871f8c396eada39fefd243db9325cc059 Mon Sep 17 00:00:00 2001 From: inorichi Date: Tue, 5 Jan 2016 04:55:31 +0100 Subject: [PATCH] Enable tiling to webtoon reader and add a fade in animation --- .../reader/viewer/webtoon/WebtoonAdapter.java | 25 ++++++++++++------- .../reader/viewer/webtoon/WebtoonReader.java | 9 +++++++ app/src/main/res/anim/fade_in.xml | 8 ++++++ 3 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 app/src/main/res/anim/fade_in.xml diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/reader/viewer/webtoon/WebtoonAdapter.java b/app/src/main/java/eu/kanade/mangafeed/ui/reader/viewer/webtoon/WebtoonAdapter.java index 3c62434b3..ccb877781 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/reader/viewer/webtoon/WebtoonAdapter.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/reader/viewer/webtoon/WebtoonAdapter.java @@ -4,6 +4,8 @@ import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.view.animation.Animation; +import android.view.animation.AnimationUtils; import android.widget.ProgressBar; import com.davemorrissey.labs.subscaleview.ImageSource; @@ -21,13 +23,11 @@ public class WebtoonAdapter extends RecyclerView.Adapter pages; private WebtoonReader fragment; - private int maxBitmapSize; private View.OnTouchListener listener; public WebtoonAdapter(WebtoonReader fragment) { this.fragment = fragment; pages = new ArrayList<>(); - maxBitmapSize = fragment.getReaderActivity().getMaxBitmapSize(); listener = (v, event) -> fragment.onImageTouch(event); } @@ -39,7 +39,7 @@ public class WebtoonAdapter extends RecyclerView.Adapter + + + \ No newline at end of file