I have to display image in an imageview. And what I want to do is just simply pinch and zoom functionality on imageview.
相关问题
- Views base64 encoded blob in HTML with PHP
- How can I create this custom Bottom Navigation on
- How to get the background from multiple images by
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
You can find below a link to a class created by Jason Polites that will allow you to handle pinch zooms on custom ImageViews: https://github.com/jasonpolites/gesture-imageview.
Just include this package into your application and then you will be able to use a custom
GestureImaveView
in your XML files:This class handles pinch zooms, but also double taps.
You can use Chrisbanes photoview library:
https://github.com/chrisbanes/PhotoView
http://www.codeproject.com/Articles/319401/Simple-Gestures-on-Android
try this library it is really amazing it gives pich zoom rotate with the amazing smoothness and is much easy to use