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

刷新完成的问题 #10

Closed
weavey opened this issue Mar 16, 2017 · 4 comments
Closed

刷新完成的问题 #10

weavey opened this issue Mar 16, 2017 · 4 comments

Comments

@weavey
Copy link

weavey commented Mar 16, 2017

刷新成功调用refreshComplete()后会有个短时间的动画显示“刷新成功”再结束整个刷新,但是每次刷新不一定都是成功的,有网络超时的情况,这时候再提示“刷新成功”显然是不合理的,希望能在refreshComplete方法中加个参数判断显示“刷新成功”或者“刷新失败”,或者去掉这个刷新完成后的提示

@lucklygaj
Copy link
Contributor

你可以使用下面两个方法 public void loadMoreFail() {
((ILoadMoreView)this.mLoadMoreView).loadFail();
this.resetLoadMoreState();
this.isLoadingFail = true;
}

public void loadNothing() {
    ((ILoadMoreView)this.mLoadMoreView).loadNothing();
    this.resetLoadMoreState();
    this.isNotMoreLoading = true;
}

@ljf1172361058
Copy link

上面两个方法都是加载更多调用的?刷新的也是这样用么?

@ljf1172361058
Copy link

这两个方法是不是可以在源码中封装一下呢?如果自己来写的话用的地方多了就比较繁琐了

@lucklygaj
Copy link
Contributor

是对于不同的加载情况,你可以调用相应的回调,来控制显示结果,嗯,感谢你的反馈,

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

3 participants