Aspsine/SwipeToLoadLayout

有一个报错没太看懂

xiaoDongBei90 opened this issue · 1 comments

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.view.View.canScrollVertically(int)' on a null object reference

我写Demo的时候没有问题,但是添加到项目的时候就出现了这个问题。唯一区别是demo是放在activity里的listview,项目中是fragment中的recyclerview。
请问楼主知道这个报错是什么原因吗?
我用的是SwipeToLoadLayout、RefreshHeaderView、LoadMoreFooterView这三个。

解决了,不用回复了,才发现recyclerview必须要用你指定的id