先生们好!有这样的代码
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:elevation="10dp"
android:background="@drawable/card_background"
>
<TextView
android:id="@+id/textView_dialog_address"
style="@style/SecondaryTextView"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_marginTop="12dp"
android:text="text"
android:textAlignment="center"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
它看起来像这样:
+我只是无法在我一直在争取第三天的信息窗口下充分添加阴影,请尽你所能帮助任何人)


一般来说,我找到了一个解决方案,在 OnMarkerClickListener 中我为 InfoWindow 添加了一个位置设置行。
其中 0.5f 是标记的中心,5f 是信息窗口的低点。