3

I am using ExpandableListView to show my data.

but when I perform some operation in ChildView of expandableListView that time I want to update my ExpandableListView as per my new data.

I have tried expandableListview.notifyDataSetChanged(); at that time it will collapse all parents in ExpandableListView.

I want to update my ExpandableListview without collapsing and want to update my ExpandableListview.

Dinesh.P
  • 61
  • 5
  • 1
    you could maintain the position that was expanded, and thus when calling notifydata set changed, also call expandgroup method and pass the position of the group. That way even if it closes it will expand the group. else all the groups will collapse – Rat-a-tat-a-tat Ratatouille Nov 07 '13 at 12:25
  • @DharaShah : I also did that but when I set particular position in to expadable list view it will go on first position. I don't want that. I just want to stay view as it is when I clicked on child view. – Dinesh.P Nov 08 '13 at 07:49
  • then u cud also mention scrolltoPosition in ur code and specify the parent position atleast. – Rat-a-tat-a-tat Ratatouille Nov 08 '13 at 08:09

0 Answers0