0

I have an activity that has just a image to show like graphical help. It has a lots of info and needs to be zoomed. I searched alot in diffrent sites and they say imageview is not zoomable. and i found complicated algoritjhms for it. i want to make my programm to zoom like many usual proggrams that zoom like my 2 fingers get further image zooms in and if they get close zooms out and and i want to user be able to move postion if image in image view bye moving his finger on it.if its impossible can i make that as background and do these functions on whole activity? thanks for helping

virtouso
  • 549
  • 11
  • 30
  • " I searched alot in diffrent sites and they say imageview is not zoomable. and i found complicated algoritjhms for it." Yes, that's how all those "many usual proggrams" do. Applying complicate algorithms. If you don't want to create it yourself, I'm sure there're several open source options you can grab the code on github – Budius Feb 20 '14 at 16:05

1 Answers1

2

This SO thread should have everything you need to implement the pinch zoom. Alternatively you could have a look at the PhotoView library; an implementation of ImageView that supports zooming.

Community
  • 1
  • 1
Kent Hawkings
  • 2,793
  • 2
  • 25
  • 30