Thanks for this Wayne, I have considered this approach - I was hoping for a neater (built in) mechanism.
Might have to do this anyway - ho-hum. Ian On Jun 5, 10:55 pm, Wayne Wenthin <[email protected]> wrote: > My low tech solution was to set a flag with onTap that was readable by the > other detectors. This let the know that I had picked the overlay item and > to ignore the rest of the processing and cleared the flag on the way out. > Actually it was a little more complicated than that but it was low tech and > works for me. > > On Fri, Jun 5, 2009 at 3:21 AM, [email protected] < > > [email protected]> wrote: > > > Hi Folks, > > > I have a need to effect the following:- > > > 1) Single tap on overlay item centres the item on the MapView at > > current zoom. > > 2) Double tap on item centres the item on the MapView at high > > resolution zoom. > > 3) Double tap, anywhere on the map, other than an item, centres home > > location on map at a reasonable zoom. > > 4) Double tap on home item centres home item on the MapView at high > > resolution zoom. (as per 2). > > > [In addition, I set a 'keep me in the centre mode' for GPS updates for > > (3) and (4), and turn it off for (1) and (2)] > > > My problem is that detecting a double tap on the overlay item > > (currently using onTap(int) with inter-click time measurement), also > > triggers a double tap on the MapView (via the OnGestureDetector). > > > Does anybody know how I can resolve the high level guesture (double > > tap) between items and maps, and prevent the event getting to both? > > > Many Thanks for any help. > > > Ian > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

