Need help with ExpandableListActivity

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

Need help with ExpandableListActivity

Postby haden » Wed Dec 10, 2008 7:02 am

Hi Guys,

I'm using ExpandableListActivity in my program. Basically I need my list to retreive data from an xml file and display the list accordingly.

I've managed to get the List working with static data.

Can someone help with getting the data displayed dynamically?

Thanks in advance.
haden
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Thu Sep 11, 2008 11:51 am

Top

Postby haden » Wed Dec 10, 2008 11:35 am

Ok. I figured it out. All i had to do is read from the xml and create two arraylists one for the group and one set for the children. Then i create a SimpleExpandableListAdapter set it as the default adapter.


I've got one more question. Is it possible to have the list displayed synchronously?
I want to read from the xml file and simultaneously have the list updated rather than loading the entire xml file first.

?
haden
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Thu Sep 11, 2008 11:51 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests