PhotoView
By Chris Banes
PhotoView aims to help produce an easily usable implementation of a zooming Android ImageView. It is currently being used in photup.
Features
- Out of the box zooming, using multi-touch and double-tap.
- Scrolling, with smooth scrolling fling.
- Works perfectly when using used in a scrolling parent (such as ViewPager).
- Allows the application to be notified when the displayed Matrix has changed. Useful for when you need to update your UI based on the current zoom/scroll position.
- Allows the application to be notified when the user taps on the Photo.
4 comments on “PhotoView”
Leave a comment


Hey,
I am using PhotoView for my app.
I am trying to display the imageView in a full Screen at first. When a touch event occurs I would like to display the ActionBar and StatusBar.
I am looking into the touch events written by you. I am finding it difficult to find out if the user taps, flings or zooms. Everything generates a touch event displaying the AB and SB.
Need Help!
Thank you.
I’m making an image gallery and I want to implement this, but I don’t understand how to do it with image files instead of drawables.
You need to load the image file into a Bitmap then set it into the ImageView then call the attacher.update(); https://github.com/chrisbanes/PhotoView#sample-application
this component is epic !
saved my bacon, many thanks to author.