liangjingkanji / BRV

[使用文档] Android 快速构建 RecyclerView, 比 BRVAH 更简单强大
http://liangjingkanji.github.io/BRV/
MIT License
2.49k stars 317 forks source link

More method to update list #411

Closed voliothonh closed 6 months ago

voliothonh commented 6 months ago

I want simple to update list (add/remove/change) by one method like:

fun updateData(updatedList : List<Any>){

}

We don't need care about index, add/ remove/ update, just update data and list will change with anim

liangjingkanji commented 6 months ago

This will result in adding a bunch of methods, More learning costs

I think it's meaningless

liangjingkanji commented 6 months ago

Existing function

rv.models = newList // set new data
rv.addModels(data)  // add data
voliothonh commented 6 months ago

This will result in adding a bunch of methods, More learning costs I think it's meaningless

I agree with you, that method will add more many of code and costs. But it's very easy to use and meaning. I take that ideal from epoxy recyclerview. When you have time you can consider it further.

Thank for Your library, It's great, improving every day.

liangjingkanji commented 6 months ago

epoxy very difficult to use, It is the most expensive rv library to learn in the world