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

recyclerview 数据重复,卡顿问题 #78

Open
threedeer opened this issue Apr 26, 2021 · 1 comment
Open

recyclerview 数据重复,卡顿问题 #78

threedeer opened this issue Apr 26, 2021 · 1 comment

Comments

@threedeer
Copy link

recyclerview嵌套日历,刷新日历数据,出现数据重复,当前数据没有覆盖上一次数据,而是取了并集。
如果给 adapter的holder 设置 setIsRecyclable(false);
那就能解决这个数据重复问题,但是这个会导致数据localdata为空?isAvailable(LocalDate localDate)这个方法报错。

我虽然加上了非空判断,但是recyclerview滑动的时候会巨卡,改怎么解决。谢谢

@yannecer
Copy link
Owner

yannecer commented May 7, 2021

@threedeer 月日历和周日历,就是简单的ViewPager,而可以尝试从这方面解决问题

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