Reputation: 972
I use the code
ExpandableListView expandListView = (ExpandableListView) findViewById(R.id.list);
expandListView.setAdapter(adapter);
Boolean flag = expandListView.setSelectedChild(1, 1, true);
but it didn't work. Nothing happened. The group didn't expand.
Upvotes: 0
Views: 1210
Reputation: 193
I found my answer here: ExpandableListView ignores setSelectedChild()
calling ExpandableListView.expandGroup(int); did the job
Upvotes: 1