Sam
Sam

Reputation: 972

the ExpandableListView ignore SetSelectedChild() method

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

Answers (1)

prot0n
prot0n

Reputation: 193

I found my answer here: ExpandableListView ignores setSelectedChild()

calling ExpandableListView.expandGroup(int); did the job

Upvotes: 1

Related Questions