More method to update list
voliothonh opened this issue · 4 comments
voliothonh commented
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
liangjingkanji commented
This will result in adding a bunch of methods, More learning costs
I think it's meaningless
liangjingkanji commented
Existing function
rv.models = newList // set new data
rv.addModels(data) // add data
voliothonh commented
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
epoxy
very difficult to use, It is the most expensive rv library to learn in the world