ExpandableListView Ignores SetSelectedChild()
I try to select an item in ExpandableListView using setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup), but nothing happens. Here's the primitive act
Solution 1:
I was just wrestling with an issue in which setSelectedChild(int, int, true)
did not expand the group as it says it does. I got around it by using the strikingly intuitive method of calling ExpandableListView.expandGroup(int);
This answer was given to me by a co-worker, so I'll pass props on to her if it helps.
Solution 2:
for me the trick was
_explist.expandGroup(0);
_explist.setSelectedChild(1,0, true);
Post a Comment for "ExpandableListView Ignores SetSelectedChild()"