I want to make a loop that in my main.xml creates a button for each item in the list. But I cant see a way to loop in the xml file and create more buttons that way.
A:
main.xml
can't be changed by your program, any more than your Java source files.
What are you actually trying to do? Provide UI for a list? Take a look at ListAdapter.
Pontus Gagge
2010-07-22 13:58:00
The ListAdapter and ListView sounds like what I need, thanks.
Mech0z
2010-07-22 14:23:13
A:
There is no loop syntax for the xml layout. If it will be dynamic you have to do it programmatically.
BrennaSoft
2010-07-22 13:58:41