How to make Expandable List View be expanded by default?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to make Expandable List View be expanded by default?

Postby snep » Thu Aug 21, 2008 6:22 pm

Hi,

Does anyone know of a easy way (via coding or through xml attributes) to display ExpandableListView as expanded/opened by default. Any help is highly appreciated.

Thanks,
Snep.
snep
Freshman
Freshman
 
Posts: 5
Joined: Thu Aug 21, 2008 2:01 am

Top

Postby hit1983 » Thu Dec 18, 2008 9:26 am

// set group 0 expanded
getExpandableListView().expandGroup(0);
// get group count
_groupCount = getExpandableListAdapter().getGroupCount();
hit1983
Freshman
Freshman
 
Posts: 9
Joined: Mon Oct 06, 2008 8:08 am
Location: BeiJing

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 4 guests