Build a photo gallery app where users can pinch to zoom into photos and see details.
Create an e-commerce app with product image screens that let customers zoom in on product photos.
Build an image viewer that supports smooth panning and double-tap zoom gestures.
Add interactive zoom to a map image viewer within a swipeable photo carousel.
PhotoView is an Android library that adds pinch-to-zoom and double-tap zoom to image views in your app. Android's built-in ImageView widget displays pictures but doesn't let users zoom into them with their fingers, PhotoView solves that problem with a drop-in replacement that behaves just like a normal image widget but adds smooth zooming and scrolling gestures on top. It supports multi-touch pinch gestures, double-tap to zoom in and out, and smooth fling scrolling when panning around a zoomed image. It also works correctly when placed inside a swipeable container like ViewPager, which is the component commonly used for photo galleries. Developers can listen for zoom level changes or tap events to update other parts of their UI when the user interacts with the photo. You would use this library if you are building an Android app in Java that shows photos and wants users to be able to zoom in for detail, for example a photo gallery, an image viewer, a product photo screen in an e-commerce app, or a map image. Adding it requires just two lines of Gradle dependency setup and replacing your ImageView tag with a PhotoView tag. It is licensed under the Apache License 2.0.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.