Closed franciscerio closed 6 years ago
Are you using a different layout for each different model class? I see R.layout.item_group_phases2
in your example but not sure what the others use.
The layout is the view type, so it needs to be unique, or else view holders will be shared with other model types.
If you want view type to be unique to each model without worrying about the layout file you can override getViewType in the EpoxyModelGroup and return 0
Thank you for your help! Issue fixed.
Hello,
I'm having trouble with EpoxyModelGroup with custom data/pojo(Phase and Entry). I'm using
sealed class
from kotlin.Scenario : I want to create a nested recyclerview. In this example, each item has it's own list of items.
Here's my code
inside PhaseModelGroup and it's the same with other model group.
and this is my error or vice versa :
Thanks