Can anyone help on how to use the matrix scaletype to zoom an imageview and also how to use the translate method so that it can be focused at the center? I have tried using webview to be able to use the zooming and scrolling functionalities i needed but it is not nice to look at.
Asked
Active
Viewed 2.4k times
6
-
1You can follow this link to get the Image Zoom-In, Zoom-out and image focused at the center:- https://stackoverflow.com/a/58074642/11613683 – Pramesh Bhalala Sep 24 '19 at 09:53
1 Answers
12
I found a tutorial divided into 4 parts from a blog on how to zoom and pan an image and it is quite nice. It has sample codes that can be downloaded and some explanations. It also have other tutorials.
Update - pointed the links to the new ones.
Update 2 - I found a ready-to-use class for ImageView zooming functionality. You check it out here.

capecrawler
- 67,353
- 7
- 31
- 34
-
http://stackoverflow.com/questions/6650398/android-imageview-zoom-in-and-zoom-out – string.Empty Jun 26 '13 at 07:37
-
You can also follow this link to get the Image Zoom-In and Zoom-out:- https://stackoverflow.com/a/58074642/11613683 – Pramesh Bhalala Sep 24 '19 at 09:53