From f2f3be80ba425180366fc98393b3a338518f3b1d Mon Sep 17 00:00:00 2001 From: Viven Date: Fri, 20 Jan 2017 15:34:16 +0800 Subject: [PATCH] fixed flickering bug to another position when zooming --- .idea/misc.xml | 2 +- library/src/main/java/com/viven/imagezoom/ImageZoomHelper.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index fbb6828..5d19981 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/library/src/main/java/com/viven/imagezoom/ImageZoomHelper.java b/library/src/main/java/com/viven/imagezoom/ImageZoomHelper.java index 1d1847e..fdc4c7e 100644 --- a/library/src/main/java/com/viven/imagezoom/ImageZoomHelper.java +++ b/library/src/main/java/com/viven/imagezoom/ImageZoomHelper.java @@ -109,8 +109,7 @@ public boolean onDispatchTouchEvent(MotionEvent ev) { } // placeholderView takes the place of zoomableView temporarily - parentOfZoomableView.addView(placeholderView, zoomableViewLP.width, - zoomableViewLP.height); + parentOfZoomableView.addView(placeholderView, zoomableViewLP); // zoomableView has to be removed from parent view before being added to it's // new parent