开发者

Android: Activity that displays a map image with zoom and drag?

开发者 https://www.devze.com 2023-03-06 14:49 出处:网络
I need to display an image(a map), and allow users to drag and zoom(two finger pinch, or is multitouch control not support on some earlier versions?), also, when user clicks on an area on the map, inf

I need to display an image(a map), and allow users to drag and zoom(two finger pinch, or is multitouch control not support on some earlier versions?), also, when user clicks on an area on the map, information of that area is displayed. I wonder is there any standard way(such like imageview wrapped in an activity) of doing this, or do I have to create an activity that has imageview in it? I searched and read some of others questions/answers, found that WebView is a good way to display image, but I need to do some operations on the image(map) like I said, is it possible for WebView?

Thanks!

edit: Is there anyway to do t开发者_如何学JAVAhis, apart from femi's answer? Also, the 3rd party package in femi's answer has a bug report that pinch image view does not zoom, so it is actually no an answer.


Try looking at http://code.google.com/p/android-pinch/ for ImageViews that offer some of what you need. Let me know if that works for you.

0

精彩评论

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

关注公众号