我在SupportFragment中遇到错误。 当我多次单击浮动按钮,然后按返回按钮时,布局开始一秒钟。
地图代码:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<fragment
android:id="@+id/mapFragmentContainer"
class="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout
android:id="@+id/llActions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/transparent"
android:layout_gravity="bottom|end"
android:orientation="vertical">
<android.support.design.widget.FloatingActionButton
android:id="@+id/bMyLocation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
app:backgroundTint="@color/background_white"
app:fabSize="normal"
app:srcCompat="@drawable/ic_my_location_24dp" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/bNavigate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
app:backgroundTint="@color/background_blue_france"
app:fabSize="normal"
app:srcCompat="@drawable/ic_navigation_24dp" />
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
结果: Normal screen
有任何修复建议吗?