You below lib :-
https://github.com/chrisbanes/PhotoView
XML
<uk.co.senab.photoview.PhotoView
android:id="@+id/iv_photo"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
JAVA
ImageView mImageView = (ImageView) findViewById(R.id.iv_photo);
hope above lib will helps you.
solved How to implement both pinch zoom and pan in android? [closed]