问题
i have this
mapa.addMarker(new MarkerOptions()
.position(latlng)
.title("HI")
.snippet("HI;HI")
.icon(BitmapDescriptorFactory.fromResource(R.drawable.same)));
but no find information of how add into infowindow a icon someone can help me?
回答1:
You will need to create your own InfoWindowAdapter and use getInfoContents()
or getInfoWindow()
to return the info window contents containing the image you seek.
来源:https://stackoverflow.com/questions/16572971/how-to-add-image-into-infowindow-of-marker-in-google-maps-api-v2-android