如何在google maps API V2 Android中将图像添加到标记的InfoWindow中?

Qui*_*ing 1 android google-maps infowindow google-maps-markers

我有这个

 mapa.addMarker(new MarkerOptions()
                       .position(latlng)
                       .title("HI")
                       .snippet("HI;HI")
           .icon(BitmapDescriptorFactory.fromResource(R.drawable.same)));
Run Code Online (Sandbox Code Playgroud)

但没有找到如何添加到infowindow的信息,有人可以帮助我的图标?

Com*_*are 5

您需要创建自己的InfoWindowAdapter并使用getInfoContents()getInfoWindow()返回包含您寻找的图像的信息窗口内容.