我已經添加recyclerview以及浮動動作按鈕,但是當我旋轉屏幕在移動浮動按鈕是不可見的只有recyclerview是visibleHow使它visible.My代碼是如下:浮動動作按鈕不顯示在屏幕的旋轉
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:background="#DCDCDC">
<android.support.v7.widget.RecyclerView
android:id="@+id/CustomerList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
android:layout_weight="1"
android:layout_marginLeft="20dp"
android:layout_marginStart="20dp"
android:layout_marginBottom="20dp"
android:layout_marginRight="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop="20dp"
android:background="#FFF"
/>
<android.support.design.widget.FloatingActionButton
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/nextToThird"
app:backgroundTint="@color/colorgreen"
android:src="@drawable/right"
android:layout_marginStart="260dp"
android:layout_marginLeft="260dp"
android:layout_marginTop="450dp"
android:padding="0dp"/>
</android.support.design.widget.CoordinatorLayout>
檢查我,問我的情況下,任何的查詢 –