airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.46k stars 730 forks source link

How to set my own ItemCItemallback? #1300

Closed xuexixuexijpg closed 2 years ago

xuexixuexijpg commented 2 years ago

How to set my own ItemCallback, I want to override areContentsTheSame method to compare. I saw that the EpoxyControllerAdapterhas been initialized when the EpoxyControlleris initialized and the adapter.setHasStableIdsmethod cannot be used. So do I have to implement the adapterand controllermyself? Or can you consider adding a custom AsyncEpoxyDifferto EpoxyControllerAdapterlater?

image

xuexixuexijpg commented 2 years ago

I misunderstood, I thought this ItemCallBack can compare the data in EpoxyModel for partial update