Android 如何在单击标记时在google maps框架外弹出自定义标记信息窗口
我正在开发一个应用程序,目前有一个主要活动,有一个协调器布局和一些片段弹出。我想实现的是,在谷歌地图片段中,从后面弹出一张卡片或类似的东西,以显示标记的详细信息,而不受标记标题/片段的限制 当前协调器布局如下所示:Android 如何在单击标记时在google maps框架外弹出自定义标记信息窗口,android,google-maps,google-maps-markers,infowindow,android-coordinatorlayout,Android,Google Maps,Google Maps Markers,Infowindow,Android Coordinatorlayout,我正在开发一个应用程序,目前有一个主要活动,有一个协调器布局和一些片段弹出。我想实现的是,在谷歌地图片段中,从后面弹出一张卡片或类似的东西,以显示标记的详细信息,而不受标记标题/片段的限制 当前协调器布局如下所示: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.and
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<FrameLayout
android:id="@+id/maincontainer"
android:layout_gravity="end"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
<android.support.design.widget.FloatingActionButton
....
/>
<android.support.design.widget.FloatingActionButton
....
/>
在尝试解决方案。我认为这不是我需要的,只是移动到信息窗口的底部会导致窗口被我的工厂覆盖,我想要实现的是协调器布局的一致性。谢谢,你试过这个了吗?