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

设置的行数为2行,load时添加数据大小0时,刷新数据后,一直是单行。DEMO可复现 #22

Open
cc365774016 opened this issue Apr 24, 2022 · 3 comments

Comments

@cc365774016
Copy link

设置的行数为2行,load时添加数据大小0时,刷新数据后,一直是单行。DEMO可复现

@cc365774016
Copy link
Author

经测试,执行load方法时最后两行代码应该交换执行顺序。应该是先attachRecyclerView,再判断toggleScrollBar。

@cc365774016
Copy link
Author

fixLineCount()这个方法的行数计算有问题。

@cc365774016
Copy link
Author

fixLineCount()这个方法我是这样改的if (size<spanCount){
layoutManager.setSpanCount(1);
}else{
layoutManager.setSpanCount(lines);
}

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

1 participant