Setting number of columns programmatically in TableLayout
Posted
by TiGer
on Stack Overflow
See other posts from Stack Overflow
or by TiGer
Published on 2010-04-28T13:48:34Z
Indexed on
2010/04/28
13:53 UTC
Read the original article
Hit count: 501
android
|tablelayout
Hi, I have an XML layout which contains a TableLayout with an unknown number of TableRows... The number of Rows will be established durin runtime, what I do know though is that I want two columns... So I have a couple of questions regarding this :
- - is there a way to set the whole TableLayout to have 2 columns ?
- is there a way programmatically to give an id to the (during runtime) created TableRows which will be placed within the TableLayout, so I can reference them later on from other parts of the software ?
© Stack Overflow or respective owner