The introduction of dependence:
implementation 'com.bm.photoview:library:1.4.1'
Add layout when using:
<com.bm.library.PhotoView android:id="@+id/photoView" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/picture_demo" android:scaleType="fitCenter"/>
To start the next gesture which java code:
PhotoView photoView = findViewById(R.id.photoView);
photoView.enable();
Click on the image can be made with dialog with the zoom function to browse.