图像显示,在像画廊图像机器人手指小号$ P $垫放大 [英] image view zoom with finger spread in android like gallery images

查看:167
本文介绍了图像显示,在像画廊图像机器人手指小号$ P $垫放大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要像放大的图像画廊,在这里我们可以放大和通过手指小号$ P $垫缩小图像和缩小图像。怎么做?任何机构可以帮助?

I want to zoom images like gallery images, where we can zoom in and zoom out the images by finger spread and shrink. How to do it? Can any body help?

感谢和放大器; Reagrds

Thanks & Reagrds

推荐答案

我做了一个ZoomableImageView为了这件事,因为我无法获得像样的东西。来源是在这里:
<一href=\"https://github.com/a85/WebComicViewer/blob/master/src/com/rickreation/ui/ZoomableImageView.java\" rel=\"nofollow\">https://github.com/a85/WebComicViewer/blob/master/src/com/rickreation/ui/ZoomableImageView.java

I made a ZoomableImageView for this thing as I could not get anything decent. Source is here: https://github.com/a85/WebComicViewer/blob/master/src/com/rickreation/ui/ZoomableImageView.java

它支持捏和缩放,双击放大和缩小,并设置适当的限制。您可能需要调整,虽然这一点。让我知道如果你有任何问题。

It supports pinch and zoom, double tap zoom in and out and sets proper limits. You might have to tweak it a bit though. Let me know if you have any problems.

这篇关于图像显示,在像画廊图像机器人手指小号$ P $垫放大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆