Yep, that works, thanks. I didn't realize that onTouchEvent() was responsible for calling all the overlays onTap()s.
"onTouched" was a typo -- I wasn't at my dev machine when I posted the question. "The list owner" would be any class that had the list as a data member -- I hadn't written it yet since I had no solution for this problem yet. I appreciate the pointers there. -Mike On Nov 1, 10:48 am, TreKing <treking...@gmail.com> wrote: > On Fri, Oct 29, 2010 at 1:42 PM, Mike Reed <waterrock...@gmail.com> wrote: > > If I add to a list in the ItemizedOverlay.onTap for each item clicked > > (returning false to not handle), the list owner has no way to know > > when the list is complete (last onTap has been called). > > Who's "the list owner"? > > > I tried onTouched in the MapView, > > There is no onTouched function in MapView, AFAICT. > > > Anybody else have an idea of how to solve this? > > 1. Create a custom MapView that derives from the base and maintains this > list of touched items. > 2. Override onTouchEvent, clear your list of touched items, and call > super.onTouchEvent which calls onTap for all overlays > 3. Each overlay references the MapView that it's in and adds itself to > that MapView's list of touched items in it's own onTap. > 4. After super.onTouchEvent completes, your MapView has a list of all > touched overlays > > --------------------------------------------------------------------------- > ---------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en