答案 0 :(得分:1)
您可以通过创建自己的信息窗口适配器来执行此操作。可以在demo app here中找到执行此操作的示例。要使用的重要代码:
mapboxMap.setInfoWindowAdapter(new MapboxMap.InfoWindowAdapter() {
@Nullable
@Override
public View getInfoWindow(@NonNull Marker marker) {
...
// return the view which includes the button
}
});