Rakshi
Rakshi

Reputation: 6866

How to control the expanding of the expandablelist in android?

I need to expand the expandedlistview only on click on a button in that list i want the list to get expanded. can anyone please guide me on how i can do it. i tried setenable on expandedlist but it dosent work. Thanks in advance.

Upvotes: 0

Views: 240

Answers (2)

Rakshi
Rakshi

Reputation: 6866

ExpandedListView expandedlist;

expandedlist.setenable(true);
expandedlist.setenable(false);

Extremly sorry guys, i didnt check properly

Upvotes: 2

Nikhil
Nikhil

Reputation: 16194

Hi Please try below like that

ExpandableListView Exlist;

Exlist.expandGroup(0);
Exlist.expandGroup(1);

Upvotes: 0

Related Questions