recyclerview-playground icon indicating copy to clipboard operation
recyclerview-playground copied to clipboard

dynamically added children

Open wassy92x opened this issue 7 years ago • 1 comments

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.

unbenannt2

wassy92x avatar Jul 29 '16 07:07 wassy92x

Can you share your code? I don't think RecyclerView was designed to inflate anything in onBindViewHolder()

dsiddiqui489 avatar Oct 18 '16 18:10 dsiddiqui489