expandable-recycler-view icon indicating copy to clipboard operation
expandable-recycler-view copied to clipboard

notifyChildInserted(parentPos, childPos) Not Working

Open noman404 opened this issue 9 years ago • 1 comments

Hi, I've added a new dataset to parent, At position 0. Then added new data to the child with index 0. then applied adapter.notifyChildInserted(0, 0);

But it doesn't work, can you guys suggest me what i should do here.

noman404 avatar Oct 19 '16 10:10 noman404

@noman404 Sorry for the late reply. If you are adding the parent and child at the same time, you can simply call notifyParentInserted(0) and that will add both the parent and the child (as long as the parent is set to initially be expanded).

paul-turner avatar Feb 03 '17 17:02 paul-turner