2012-11-28 30 views

回答

0

看一看在Mapview Overlay Manager project,它採用了GestureListener提供以下的觸摸事件:

  • onSingleTap(MotionEvent,ManagedOverlay,GeoPoint的,OverlayItem)
  • onDoubleTap(MotionEvent,ManagedOverlay,GeoPoint的,OverlayItem )
  • onLongPress(MotionEvent,ManagedOverlay,的GeoPoint,OverlayItem)
  • onZoom(ZoomEvent,ManagedOverlay)
  • onScrolled(...)

由您決定是採用整個庫還是僅僅將它作爲自己實現的指導原則。我想象一下,如果以上五種方法都不符合你的需求,那麼就不應該使用通用的onTouchevent方法。