Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

滑动时出现的问题 #18

Open
devilkeven opened this issue May 17, 2017 · 1 comment
Open

滑动时出现的问题 #18

devilkeven opened this issue May 17, 2017 · 1 comment

Comments

@devilkeven
Copy link

第一次进入滑动界面,第一次使用下拉刷新或上拉加载,回调中的complete方法不起作用,要向反方向再上拉或下拉一次才能complete成功.
还有一个问题,是使用一次下拉之后不能紧接着执行下拉操作,必须上拉和下拉交替着来,才能使用,看了源码之后试着重写了一些方法都没有解决问题,暂时没有解决方案,希望您能抽时间解答一下,谢谢

@canyinghao
Copy link
Owner

下拉刷新完成后需要调用 refresh.refreshComplete();上拉加载完成后需要refresh.loadMoreComplete();如果使用的自动加载,加载完成后需要调用footer.loadMoreComplete()。参考Demo,如果Demo运行没问题的话,应该是你什么地方写错了。下拉,会调用onRefresh(),在这个方法里请求接口,接口无论成功还是失败,都在回调里调用refresh.refreshComplete(),就不会有问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants