Analysis updated 2026-06-21
Add pinch-to-zoom to a photo gallery screen in your Android app in under five minutes.
Build a product detail screen in an Android e-commerce app where users can zoom into item photos for detail.
Display a high-resolution map image in an Android app that users can pan and zoom with finger gestures.
Add zoomable image support inside a swipeable ViewPager photo gallery.
| baseflow/photoview | dromara/sa-token | antlr/antlr4 | |
|---|---|---|---|
| Stars | 18,834 | 18,802 | 18,874 |
| Language | Java | Java | Java |
| Setup difficulty | easy | easy | moderate |
| Complexity | 1/5 | 2/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
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.
An Android library that adds pinch-to-zoom and double-tap zoom to image views with a two-line Gradle install, a drop-in replacement for Android's default ImageView that makes photos interactive.
Mainly Java. The stack also includes Java, Android.
Use freely in any project including commercial apps, as long as you include the Apache 2.0 license notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.