I am using Android Maps V2 and have a set of markers that display custom content in the popup info windows, on tap. I used a custom implementation of the InfoWindowAdapter to feed the popup dynamic content in a custom layout. By default though, the width of the popup will always take over the entire width of the map layout. Is there a way to customize it, add some lateral padding, control the width?
Share
You can override getInfoWindow to return a custom view:
You can inflate a custom view resource (xml) in your InfoWindowAdapter constructor (for instance):
If you installed the google play services sdk there is a sample application for maps in samples/maps (where the example code is coming from)