Can I initialize an Array list from data specified in xml resource file?

by Videoguy » Mon, 09 Mar 2009 23:24:10 GMT


Sponsored Links
 Is is possible to specify data in xml resource file and initialize
ArrayList from it?
I am looking for a way to use the ArrayList with a SimpleAdapter to
bind to a ListView.
I am wondering if there is a way to specify my data in xml resource
file and init ArrayList from it.

Videoguy
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. onMeasure gets called, but View doesn't change size

I have a View that I've placed into a ScrollView.  The View paginates
text.  If the text changes, then the height of this view will also
change (expand or contract, depending on whether the new text takes
more vertical space or less).

For debugging, I draw a rectangle around the view to show its current
size.

After I repaginate, I cannot get Android to cause the View to change
its size -- I have tried calling measure() myself, calling
requestLayout(), and calling forceLayout() -- even though my
overloaded onMeasure gets called, and calls setMeasuredDimension()
with the correct values, the view remains the same size as it was
before repagination.  What am I missing?

Any help is very much appreciated!

-- 

2. how do you specify the name of the .apk file....

from eclipse, when you do anroid tools > export [signed|unsigned] apk, 
it asks for the name. how are you generating your apk?




-- 

-- 

3. Translucent Activity not calling onStop() on exit

4. Using multiple layouts for different screens.

5. i need my dotlan

6. Runtime language loading

7. Repo Init for Eclair