androidgoogle-maps-markersgoogle-maps-api-2

Android : Custom Pin Marker with buttons in Google Map API 2


I am working on android tracking application.

I need to show Connected friends on MapView. Each Friends marker contains image(Person image) and two buttons(Make Call and message) .

Note : The two buttons should show after image pressed.

I try this sample http://www.nasc.fr/android/android-using-layout-as-custom-marker-on-google-map-api/. It shows only TextView.

Is there any way to add custom marker with button or any other ideas to achieve this?

Below image shows the map-view that i want to add live views.

Thanks in Advance

enter image description here


Solution

  • Finally i ended up with my result with the below link

    Google Maps Android API v2 - Interactive InfoWindow (like in original android google maps)

    Its quiet interesting to hack layouts.

    Thanks,