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

作者您好,您的这个封装十分好,但是感觉就是少了一种模式 #35

Open
liyuhaolol opened this issue Apr 25, 2017 · 5 comments

Comments

@liyuhaolol
Copy link

现在你只有2个模式,单独下拉刷新模式PtrDefaultHandler,下拉,上拉模式PtrDefaultHandler2,但是仔细想想,诸如搜索记录这种使用场景,是个单独上拉刷新模式,所以,现在差一种使用场景,希望作者可以加上这最后一种使用场景,我是使用您的源码自己封装了下,但是我感觉您封装出来一个额外的接口,供给大家使用更好,麻烦您阅读了!

@captainbupt
Copy link
Owner

没懂你意思,搜索记录?。。。你可以直接提交一个pull request

@liyuhaolol
Copy link
Author

我只是说了一个使用场景而已,现在handler确实你只有2个,1个同时存在的,1个只有下拉的,是不是缺少一个只有上拉的handler呢?我只是推荐您可以加上,完善一下

@captainbupt
Copy link
Owner

可以通过setMode(Mode. LOAD_MORE)来实现,使用handler2,忽略下拉方法即可。

@liyuhaolol
Copy link
Author

我知道的,这么做,反正还是会有无关代码的干扰,看起来不清净,所以才推荐您,能更新多一个api而已

@1024042400
Copy link

哈哈, 我是不知道有setMode(Mode. LOAD_MORE)这个方法, 找了半天.
不过handler如果有3种模式会更清晰. 1:同时存在. 2:只有下拉. 3:只有上拉.

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