[android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Martin
Can you use the InfoWindowAdapter and override it's GetInfoContent handler to supply your own custom View and in that custom View create the clickable Views you require?

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Edward Lin
I will have a try and let you know the results. Thanks! On Wed, Mar 13, 2013 at 3:25 AM, Martin warwo...@gmail.com wrote: Can you use the InfoWindowAdapter and override it's GetInfoContent handler to supply your own custom View and in that custom View create the clickable Views you

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Edward Lin
I can supply the custom view, the views have the autolink for phone or email, but when I click the InfoWindow, it raised as whole InfoWindow event. Here is the codes I revised from a post by Commonware. Any light? public class TaskMapV2 extends FragmentActivity implements

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Mark Murphy
You define views for the InfoWindow, but that's not what is rendered on the screen, AFAIK. Instead, the views appear to be converted into a bitmap, presumably by drawing them into a bitmap-backed Canvas. My assumption is that this is due to the inter-process communication between the Maps V2

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Edward Lin
Thanks for information! That sounds like Google Map API V2 is way more complicated than V1 if developers try to use a popup to show information and execute different events. If I am using RelativeLayout to position the popup over the marker, is there any way I can get the location of the marker

Re: [android-developers] Re: How to replace the ItemizedOverlay with onTap event

2013-03-13 Thread Mark Murphy
On Wed, Mar 13, 2013 at 6:39 PM, Edward Lin edwardlinw...@gmail.com wrote: If I am using RelativeLayout to position the popup over the marker, is there any way I can get the location of the marker on the mapFragement when I click the marker? Well, you know the latitude and longitude of the