ImageView的 - 实现手势(双指缩放,双击)与ViewPager(就像Android图库)兼容 [英] ImageView - implementing gestures (pinch zoom, double tap) compatible with ViewPager (just like Android Gallery)
本文介绍了ImageView的 - 实现手势(双指缩放,双击)与ViewPager(就像Android图库)兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在寻找实现手势选项与ViewPager ImageView的一个有效途径。
我尝试了一些例子,但效果不好(例如双指缩放居然没有放大,我想)。
在我的应用程序,我需要捏缩放,双击缩放和放大draging形象。
I was looking for an effective way to implement gestures option to ImageView with ViewPager. I tried some examples, but they are not working well (e.g. pinch zoom actually is not zooming where I want to). In my app I need pinch zooming, double tap zoom and draging zoomed image.
什么是做出最快和最简单的方式,所有的工作呢?
What is the fastest and easiest way to make it all working well?
推荐答案
你可以试试这个开放的源项目: https://github.com/jasonpolites/gesture-imageview
you can try this open sources project: https://github.com/jasonpolites/gesture-imageview
这篇关于ImageView的 - 实现手势(双指缩放,双击)与ViewPager(就像Android图库)兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文