Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经阅读了有关自定义信息窗口的文档。
但我真的需要示例代码
我在哪里可以得到那个?多谢
类似于图片
查看示例代码部分中描述的地图演示中的 MarkerDemoActivity(渲染方法) 。
希望有帮助。
它就像任何适配器: https ://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/GoogleMap.InfoWindowAdapter
public abstract View getInfoWindow (Marker marker)