'''Java <com.xjp.library.FloatButton android:layout_width="match_parent" android:layout_height="match_parent">
<Button
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:tag="sticky"
android:text="folatButton" />
</com.xjp.library.FloatButton> 需要浮动的空间添加 android:tag = "sticky" 标签就ok了。