Programmatically set border for TableRow's array
Asked Answered
F

0

4

I've never seen a question as mine.

How can i set a TableRow.LayoutParams with array of TableRow?

This is an example of code:

for (int i = 0; i < 3; i++) {
    tvName[i] = new TextView(this);
    tvName[i].setText("Test");
}

row = new TableRow[3];

for (int i = 0; i < 3; i++) {
    row[i] = new TableRow(this);
    row[i].addView(tvName[i]);
    Tbl_Data.addView(row[i]);
}
Festinate answered 9/2, 2012 at 17:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.