How can I get an Android TableLayout to fill the screen?

后端 未结 5 1839
日久生厌
日久生厌 2020-12-13 19:11

I\'m battling with Android\'s awful layout system. I\'m trying to get a table to fill the screen (simple right?) but it\'s ridiculously hard.

I got it to work someho

5条回答
  •  我在风中等你
    2020-12-13 19:36

    You never set the row or button layout parameters whereas in the posted xml you do that..change the details of the for loops to set both the row layout parameters and the button layout parameters than it should give the same result as your xml.

提交回复
热议问题