Sunday, January 26, 2014

Ask onTouchEvent problem


            
I want to achieve tap the screen to get to that point the function of latitude and longitude, use setOnTouchListener method to mapView set OnTouchListener,
But OnTouchListener in the onTouch method, if I return to true, you can not drag a map; If it returns false, OnTouchListener can only listen to a DOWN event, and even then the up event listeners are less, but then you can drag the map .
How do I do to make my code both listener execution, without affecting the function ah drag the map
Reply:
Resolved, the method of sharing in it
The solution is to read http://blog.csdn.net/sam_zhang1984/article/details/6364715
sam_zhang1984 logs obtained
The method is to add mapview ItemizedOverlay, and then implement the ItemizedOverlay onTouchEvent method on OK
Reply:
Rub, do not give yourself points, just to personalize it, and give to you, I posted a knot
Reply:
Access points come, ha ha ha
However, this method is good
Reply:
See a portion.
Reply:
Thanks to the landlord or late
Reply:
Rub you say ye not the way I tried to explain zahuishi children who
Reply:
Someone you to answer ah
Reply:
cited a floor litingdanding reply:
resolved, under the right way to share
The solution is to read http://blog.csdn.net/sam_zhang1984/article/details/6364715
sam_zhang1984 logs obtained
The method is to add mapview ItemizedOverlay, and then implement the ItemizedOverlay onTouchEvent method on OK


ItemizedOverlay not have this function ah

No comments:

Post a Comment