How to shift an enlarged image with finger in ImageView?

Based on that answer of the question when zoomed well how to move the image with finger to see the other part of the image.

Author: Comunidade, 2016-02-04

1 answers

You can try using Lyft's scissors library CropView.

<com.lyft.android.scissors.CropView
    android:id="@+id/crop_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:cropviewViewportHeightRatio="1"
    />

Https://github.com/lyft/scissors

All information on how to use is in the link above. You just don't need to use the crop function.

To add it to your project just write in your gradle the following:

dependencies {
    compile 'com.lyft:scissors:1.0.1'
}
 1
Author: Victor Gomes, 2016-02-08 14:09:11