Thanks, it helped:).

On 19 янв, 17:12, TreKing <[email protected]> wrote:
> On Mon, Jan 18, 2010 at 5:28 PM, Denis <[email protected]> wrote:
> > Hi, Group!
>
> Hi!
>
> > And here comes the problem. What action should I take?
>
> That depends ... what do you want to DO?
>
> >  setOnTouchListener? But for what exactly - items seem not to have it;
> > mapView - well, I don't need whole MapView to be clicked... onTap
> > (View,event) - again, how exactly?
>
> Implement onTap(int) and have it return true which allows the mapView to
> then call onTap(GeoPoint, MapView). Override this method and call
> super.onTap(GeoPoint, MapView) to determine if your itemized overlay was, in
> fact, tapped. If so, you can then use getFocus() to get the currently
> selected item (as you've noticed, it's the once that comes to the top of the
> Z-order) and do whatever you need to do.
>
> > Surprising thing for me - that whenever two my items cover one another
> > (because scale is to small, for example) and I click on one, that
> > below - it immidiately comes up... So, Maps know that I'm clicking on
> > pins...
>
> Yes, the default behavior is to set focus to the item you tap.
>
> Hope that helps.
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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

Reply via email to