How to move an enlarged image with a finger in ImageView?

7

Based on in this question answer when you are zoom as you move the image with a finger to see the other part of the image.

    
asked by anonymous 05.02.2016 / 00:22

1 answer

1

You can try using the CropView from the Lyft scissors library.

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

link

All the information on how to use it is in the link above. You just do not need to use the crop function.

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

dependencies {
    compile 'com.lyft:scissors:1.0.1'
}
    
08.02.2016 / 15:09