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

作者是否可以增加预加载功能? #24

Closed
ljackChen001 opened this issue Jul 26, 2017 · 5 comments
Closed

作者是否可以增加预加载功能? #24

ljackChen001 opened this issue Jul 26, 2017 · 5 comments

Comments

@ljackChen001
Copy link

使用BaseRecyclerViewAdapterHelper NestedScrollView 嵌套RecyclerView 会无限触发上拉加载,作者看是否可以支持预加载?

lucklygaj added a commit that referenced this issue Jul 27, 2017
lucklygaj added a commit that referenced this issue Jul 27, 2017
@lucklygaj
Copy link
Contributor

Ok了。升级到1.3.1即可

@ljackChen001
Copy link
Author

NestedScrollView 嵌套RecyclerView 还是没法使用,单独使用RecyclerView BaseRecyclerViewAdapterHelper 自带的也可以实现

@lucklygaj
Copy link
Contributor

实现预加载是通过recyclerView本身的滚动监听器实现的,如果一开始就全部展开了,是不会触发的

@ljackChen001
Copy link
Author

NestedScrollView 嵌套RecyclerView 之后 recyclerView.setNestedScrollingEnabled(false); 滑动都交给了NestedScrollView 所以滑动的时候 上拉根本就会没有效果

@lucklygaj
Copy link
Contributor

NestedScrollView 跟ScrollView作用基本一样,你RecyclerView的滚动事件如果被拦截了,这个预加载肯定受影响

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