How to move an enlarged image with finger in Imageview?

Asked

Viewed 183 times

7

1 answer

1

You can try using 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"
    />

https://github.com/lyft/scissors

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

To add to your project just write in your Radle the following:

dependencies {
    compile 'com.lyft:scissors:1.0.1'
}
  • thanks, it would be a third party library but I wanted a solution to that problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.