如何在google maps API V2 Android中将图像添加到标记的信息窗口?
我有这个如何在google maps API V2 Android中将图像添加到标记的信息窗口?,android,google-maps,google-maps-markers,infowindow,Android,Google Maps,Google Maps Markers,Infowindow,我有这个 mapa.addMarker(new MarkerOptions() .position(latlng) .title("HI") .snippet("HI;HI") .icon(BitmapDescriptorFactory.fromResource(R.drawable.same))); 但找不到有关如何将图标添加到信息
mapa.addMarker(new MarkerOptions()
.position(latlng)
.title("HI")
.snippet("HI;HI")
.icon(BitmapDescriptorFactory.fromResource(R.drawable.same)));
但找不到有关如何将图标添加到信息窗口的信息
有人可以帮我吗?您需要使用
getInfoContents()
或getInfoWindow()
返回包含您所搜索图像的信息窗口内容 您需要使用getInfoContents()
或getInfoWindow()
返回包含您所搜索图像的信息窗口内容 …这不是很好的文档,是吗?InfoWindowAdapter界面没有具体的例子,只有一些图片,说明如果你猜对了,它应该是什么样子。这不是很好的文档,是吗?InfoWindowAdapter界面没有具体的例子,只有一些图片,说明如果你猜对了,它应该是什么样子。