最佳答案
因此,您需要添加如下内容:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.gms.maps.MapView
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@drawable/map_white_overlay" />
</RelativeLayout>
@drawable/map_white_overlay 将是您的白色渐变图像。要求设计师从他的 psd 中获取它或尝试以某种方式自己获取它。
至于 map 样式,从 google-play-service 9.6.0 开始,您可以使用此 link 设置 map 样式。
关于Android map 设计更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40305868/