Issue
Android and GoogleMaps: Can I disable the mapView dragging without disable the pinch to zoom function? Thx for answer
Solution
Use GestureDetector
and SimpleOnGestureListener
, use onFling()
to detect the distance between the path user did with his finger from the first touch till the release with .getX()
and getY()
from each MotionEvent
and do nothing for x > SOMEMAXVALUE
and y > SOMEMAXVALUE
. I hope you'll find your way.
Answered By - Nikola Despotoski
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.