expandable-recycler-view
expandable-recycler-view copied to clipboard
notifyChildInserted(parentPos, childPos) Not Working
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 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).