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

如何获取操作数据集合? #3837

Open
HalyangDream opened this issue Dec 29, 2023 · 1 comment
Open

如何获取操作数据集合? #3837

HalyangDream opened this issue Dec 29, 2023 · 1 comment

Comments

@HalyangDream
Copy link

Describe the bug
比较复杂的数据操作,类似微信的聊天会话列表,当收到其他人的消息,将其放到顶部,其他会话下移,但是Adapter中的add,remove,set,swap,move,全都是调用了更新,没有直接操作数据的地方,导致只更新一个item,其他的数据无法更改
版本:io.github.cymchad:BaseRecyclerViewAdapterHelper4:4.1.2

@Lemon-666-byte
Copy link

class TestAdapter : BaseQuickAdapter<Status, QuickViewHolder>() {

...

override var items: List<Status>
    get() {
        return emptyList() // 你的操作
    }
    set(value) {
        // 你的操作
    }

}

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