Open zsweigart opened 4 years ago
Could it be orientation = VERTICAL
which is mission from the init { }
block in EpoxyTestView
?
Because the default orientation of a LinearLayout is HORIZONTAL
Adding orientation = VERTICAL
in the init { }
block in EpoxyTestView
does not solve the issue. I have switched to using multiple epoxy views and adding and removing them instead of adding views inside of an epoxy view
I have an Epoxy Model that I want to add and remove views from dynamically when I click the view. I don't know the number of views beforehand to include them in the xml so I can't use visibility on a known set of views. I am also adding drag and drop which is why I can't use multiple view types as described in https://github.com/airbnb/epoxy/issues/473#issuecomment-500120564
What happens is when I click the view the size of the view expands slightly so it seems like the views are being added, but the new views aren't visible.
I am using a vertical recyclerview with a custom EpoxyController
Layout xml file
Epoxy View
I have also tried adding and removing the views in an animation listener but that crashes
In my Epoxy controller I am setting up the model
I have tried it with and without
requestModelBuild()
after I add the views with the same resultHere is the result