title: Image Zoom Issue with Universal Image Loader and View Pager
body: <p>I'd like to use ImageViewZoom with Universal Image Loader in ImagePagerActivity.</p>
  
  <p>I am able to zoom the image, Swipe to the next image. But i am facing problem when image is in Zoom position. </p>
  
  <p><img src="https://i.stack.imgur.com/2hFfR.png" alt="enter image description here"></p>
  
  <p>if an image is zoomed and i am at center position, if i want to see the right side part of the same image and swipe left it is going to the next image. Please help me in doing this.</p>
  
  <p>here is my XML code:</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:padding="1dip" &gt;
  
    &lt;it.sephiroth.android.library.imagezoom.ImageViewTouch
       android:layout_weight="1"
       android:id="@+id/image"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"
       android:scaleType="fitCenter" /&gt;
  
    &lt;ProgressBar
      android:id="@+id/loading"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center"
      android:visibility="gone" /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Thank you NOSTRA, Now i am able to control the zoom and slide with the below code. But the problem with Multi touch zoom. I am not able to zoom with two fingers.</p>
  
  <p>Here is my previous code(working fine with two finger):</p>
  
  <pre><code>public class ScaleListener extends ScaleGestureDetector.SimpleOnScaleGestureListener {
  
  
          @Override
          public boolean onScale( ScaleGestureDetector detector ) {
              Log.d( LOG_TAG, "onScale" );
              float span = detector.getCurrentSpan() - detector.getPreviousSpan();
              float targetScale = mCurrentScaleFactor * detector.getScaleFactor();
              if ( mScaleEnabled ) {
                  targetScale = Math.min( getMaxZoom(), Math.max( targetScale, getMinZoom()-0.1f ) );
                  zoomTo( targetScale, detector.getFocusX(), detector.getFocusY() );
                  mCurrentScaleFactor = Math.min( getMaxZoom(), Math.max( targetScale, getMinZoom()-1.0f ) );
                  mDoubleTapDirection = 1;
                  invalidate();
                  return true;
              }
              return false;
          }
      }
  </code></pre>
  
  <p>And here is the Modified one:</p>
  
  <pre><code>public class ScaleListener extends ScaleGestureDetector.SimpleOnScaleGestureListener {
          @Override
          public boolean onScaleBegin(ScaleGestureDetector detector) {
              externalScaleListener.onScaleBegin();
                  return super.onScaleBegin(detector);
          }
          @Override
          public void onScaleEnd(ScaleGestureDetector detector) {
              externalScaleListener.onScaleEnd(mCurrentScaleFactor);
          }
      }
  </code></pre>