How to add image into InfoWindow of marker in google maps API V2 Android?

╄→гoц情女王★ 提交于 2019-12-24 09:48:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!