Detect when pan animation is completed

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Detect when pan animation is completed

Postby appricot » Mon Jan 11, 2010 5:03 pm

Hey everyone,
I am wondering if there is a simple way to detect when the pan animation of a map finishes. in other words, i don't simply detect ACTION_UP, because the map can still be moving to a different center after the finger is released from the touch display (in case you fling it!).

Thanks, Ralf
appricot
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Dec 08, 2009 5:50 pm

Top

Postby piuccio » Mon Jan 11, 2010 11:36 pm

You can send an delayed message and check after a while if the map is still moving.
Maybe it's not the best solution but it works.
piuccio
Freshman
Freshman
 
Posts: 3
Joined: Sun Sep 06, 2009 11:43 am

Postby qlimax » Tue Jan 12, 2010 12:45 am

an idea would be to start a thread on key up

then wait i.e 2 seconds,

then call this on your map controller
http://code.google.com/intl/it/android/ ... boolean%29

and join the thread before doing any stuff with the center coordinates


bye
¯`·.¸¸.><((((º>¯`·.¸¸. ><((((º>
User avatar
qlimax
Master Developer
Master Developer
 
Posts: 271
Joined: Mon Aug 31, 2009 10:54 am
Location: Swiss

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 5 guests