Cursor backed ExpandableListView data update

Posted by Aleksander O on Stack Overflow See other posts from Stack Overflow or by Aleksander O
Published on 2010-05-17T05:56:22Z Indexed on 2010/05/17 6:00 UTC
Read the original article Hit count: 387

Filed under:

Hi

I'm implementing CRUD functionality using ExpandableListView. Wen I delete a parent data on screen refreshes automatically but it doesn't when I delete a child. I've solved this with:

int categoryId = ExpandableListView.getPackedPositionGroup(info.packedPosition);
getExpandableListView().collapseGroup(categoryId);
getExpandableListView().expandGroup(categoryId);

Is there any better way to this?

Thanks

Aleksander

© Stack Overflow or respective owner

Related posts about android