Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Imageview(如杂志页面)。当我进入该图像时,我想要下一个图像(页面)。还想要这个图像的放大和缩小选项。我怎么能做到这一点?
谢谢
假设您已经分别研究了捏缩放和滑动手势,您可能希望对可用性施加限制。当图像被缩放(占用的区域大于屏幕尺寸)时,您应该禁用滑动检测,并在图像尺寸小于屏幕尺寸时再次启用它。
我实现了这样一个库。仍然存在一些小问题,但它是功能性的并且可以扩展。
这是 github 上的分支:https ://github.com/kilaka/ImageViewZoom
享受。
在带有捏合缩放的画廊(在照片之间滑动)上找到了这篇文章。
我最近实现了它,效果很好
https://github.com/chrisbanes/PhotoView