liangjingkanji/BRV

More method to update list

voliothonh opened this issue · 4 comments

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

fun updateData(updatedList : List<Any>){

}
  • If updateList same originList before => No change
  • If any Object index diffirent => update that row (Even some variable of Object diffirent still update list)

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

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

I think it's meaningless

Existing function

rv.models = newList // set new data
rv.addModels(data)  // add data

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.

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