Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make my ImageView zoomable?

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.

like image 939
capecrawler Avatar asked Dec 21 '09 09:12

capecrawler


1 Answers

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.

like image 187
capecrawler Avatar answered Oct 29 '22 13:10

capecrawler