I was looking for iphone like tap and pinch zooming with android ImageView. Mike Ortiz have done some excellent work on TouchImageView to detect boundaries. His code can be found here.
This code is missing only one thing, i.e., double-tap to zoom. Can anyone help add this feature to Mike Ortiz code?
Best Answer
It's old, but as no answer picked as correct, I would like to share it.
I've tweaked the TouchImageView class in this answer to support double tap for zooming in/out by implementing
GestureDetector.OnGestureListener
,GestureDetector.OnDoubleTapListener
interfacesUsage: You can replace your
ImageView
with TouchImageView in both XML & java1. For XML
2. For Java