开发者

image view zoom with finger spread in android like gallery images

开发者 https://www.devze.com 2023-02-28 14:55 出处:网络
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?

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?

Thanks & Reagrds


What you're essentially asking for is multi-touch zoom for an image, right? If so, this should be the answer you're looking for:

How can I get zoom functionality for images?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消