Open yohann84L opened 7 years ago
Overwrite the function basically
Add this code in onCreate: Constants.Pinch.MINIMUM_ZOOM = 1; Constants.Pinch.MAXIMUM_ZOOM = 1;
For disable double tap: pdfView.fromAsset(SAMPLE_FILE) ....... .enableDoubletap(false) .load();
Another possibility is to change the zoom when you create the view :
pdfView.setMaxZoom(Constants.Pinch.MINIMUM_ZOOM); pdfView.setMidZoom(Constants.Pinch.MINIMUM_ZOOM);
That way you don't have to change the Constants.
另一种可能性是在创建视图时更改缩放:
pdfView.setMaxZoom(Constants.Pinch.MINIMUM_ZOOM); pdfView.setMidZoom(Constants.Pinch.MINIMUM_ZOOM);
这样,您不必更改常量。
effect is wrong
Is there any way to disable pinch to zoom ? I don't want users to zoom in or out on the PDF.