Hi,
I have the exact same problem. :D
It seems, that the weight parameter in a TableRow is just not considered when adding the row to a TableLayout in code.
In a static XML-layout-file it works.
Update 1
I found the solution
here!
The key sentence is
"A widget must have the LayoutParams of its
*parent*.", so you have to change the
TableRow.LayoutParams
to
TableLayout.LayoutParams
for your table rows.
Hope it works!