悬浮控件可以用帧布局FrameLayout实现一个布局写主要布局另一个现实悬浮按钮
<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <FrameLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <include layout="@layout/adapter_jzcl_form_rv" /> <android.support.v7.widget.RecyclerView android:id="@+id/rc_table" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout>