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

后端 未结 5 1841
日久生厌
日久生厌 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 19:23

    Found the answer: apparently it is the layout_weight that makes it work and there is no way to set it from Java. Damnit.

    See How can I get an Android TableLayout to fill the parent in landscape mode?

提交回复
热议问题