sticky-headers-recyclerview的使用教程,网上已经有的是了,这里就附加教程和库的链接,想详细了解的童鞋自行点击
sticy_headers_recylerview教程
根据demo改写的时候会出现,无法显示数据或者显示的效果和demo不一致,主要原因出现在哪里呢?我在使用的时候,也在想这个问题这里,给出我的解决方法,问题出现在布局上你的recylerView不是全充的,只要更改不布局就可以出现了。
<android.support.v7.widget.RecyclerView
android:id="@+id/bookList"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</android.support.v4.widget.SwipeRefreshLayout>