What is the best way to display a map picture on Android?

I am currently trying to figure out which way is best to display a picture in an Android app. The picture will be a map and will be a big picture (3000x3000 pixels). I would like to add the ability to pinch zoom into the picture and move the image around the screen but not have the scale of the image changed. I have played around with a lot of solutions that when the image is moved it is auto re-sized. Is there a way of doing this? Thanks.


However I have used many libraries for loading large images but subsampling-scale-image-view is the best library I found and also it supports a variety of gesture support.

Gesture detection

  • One finger pan
  • Two finger pinch to zoom
  • Pan while zooming
  • Seamless switch between pan and zoom
  • Fling momentum after panning
  • Double tap to zoom in and out
  • Options to disable pan and/or zoom gestures
  • Supports interception of events using GestureDetector and OnTouchListener Extend to add your own gestures

    Njoy!

    链接地址: http://www.djcxy.com/p/67422.html

    上一篇: Facebook分享,标题不共享

    下一篇: 在Android上显示地图图片的最佳方式是什么?