tags:

views:

27

answers:

2

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
The ListAdapter and ListView sounds like what I need, thanks.
Mech0z
A: 

There is no loop syntax for the xml layout. If it will be dynamic you have to do it programmatically.

BrennaSoft