On Fri, Oct 29, 2010 at 1:42 PM, Mike Reed <[email protected]> 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 [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-developers?hl=en

