recyclerview-playground
recyclerview-playground copied to clipboard
dynamically added children
Unfortunately the FixedGridLayoutManager doesn't work correctly if I try to inflate dynamical children in onBindViewHolder. I have an RecyclerView where every cell exists of another RecyclerView. The height of the cells is always zero respectively the minimum height.
I already tried to replace the child-RecyclerView with a LinearLayout and add to this the children. But this doesn't help.
Can you share your code? I don't think RecyclerView
was designed to inflate anything in onBindViewHolder()