实现效果为向下滑动FAB消失,向上滑动FAB出现,点击FAB自动跳转到Recycleview顶部。
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.example.mark_pc.yixuedemo.fragment.HomeFragment"> <com.jcodecraeer.xrecyclerview.XRecyclerView android:id="@+id/xrv_classify" android:layout_width=