I came across the Epoxy library while looking for information about RecyclerView.
Epoxy is a library that makes RecyclerView easier to use.
I haven't applied it to my app yet, but I think it will be easier if I apply it.
Because the RecyclerView I use is based on two view types, and both items are dynamically added/removed frequently (DiffUitl is also used).
However, while reading the description of the Epoxy library in Git,
I came across the following:
Additionally, Epoxy adds support for saving view state and automatic diffing of item changes.
I'm curious as to what automatic diffing you're talking about here works based on.
Is it DiffUtil internally or simply notifyDatasetChanged()?
If it uses DiffUtil then I'm going to use Epoxy or I'll consider it.
They are not using
notifyDatasetChanged()as per the documentation:DiffUtilis used for theEpoxyControllerclass, but not forEpoxyAdapterclass, the documentation says:So, As you still designing your app, I expect that you'll be using
EpoxyControllerrather than the legacyEpoxyAdapter; and therefore,DiffUtilis already utilized.It's up to you; using libraries in general has pros and cons in terms of continuity, security, limitations, complexity .. etc.