We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
itemProvider中,onBindViewHolder中提供了当前viewholder和相关的数据类,但是我想访问上一个位置的数据,应该如何做? 问题抽象一下,就是当前item的不仅和自身状态有关,也和上一个item的数据有联系。
The text was updated successfully, but these errors were encountered:
那你可以把 items List 通过 provider 构造函数或 setter 方法传给 provider 即可,provider 中可以拿到 position,再调用例如 items.get(getPosition() - 1)
Sorry, something went wrong.
No branches or pull requests
itemProvider中,onBindViewHolder中提供了当前viewholder和相关的数据类,但是我想访问上一个位置的数据,应该如何做? 问题抽象一下,就是当前item的不仅和自身状态有关,也和上一个item的数据有联系。
The text was updated successfully, but these errors were encountered: