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

当我刷新适配器的时候问题 #3

Open
jiaoyongzhi opened this issue Jul 14, 2022 · 1 comment
Open

当我刷新适配器的时候问题 #3

jiaoyongzhi opened this issue Jul 14, 2022 · 1 comment

Comments

@jiaoyongzhi
Copy link

当我去刷新适配器的时候 数据会回到第一项

@jiaoyongzhi
Copy link
Author

如果用.notifyItemChanged(i); 会报错
java.lang.IllegalStateException: Two different ViewHolders have the same change ID. This might happen due to inconsistent Adapter update events or if the LayoutManager lays out the same View multiple times.
如果用.notifyDataSetChanged; 列表会回到第一项

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