Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在google maps API V2 Android中将图像添加到标记的信息窗口?_Android_Google Maps_Google Maps Markers_Infowindow - Fatal编程技术网

如何在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界面没有具体的例子,只有一些图片,说明如果你猜对了,它应该是什么样子。