How can i add more than 1 Views in one cell in TableRow?

后端 未结 1 1705
悲哀的现实
悲哀的现实 2021-01-23 00:03

As above, How do i put 2 views inside one cell in a tablerow? I created a Table Layout and by code i am adding rows.

Below is my code,:

            


        
相关标签:
1条回答
  • 2021-01-23 00:30

    You would need to put them in some sort of container, such as a LinearLayout or RelativeLayout. There can only be one View per cell, but if that View is a container, then that one View can be actually made up of several.

    Bear in mind, though, that phone screens are tiny. Having containers nested inside a TableLayout may be difficult to use on, say, a QVGA screen.

    0 讨论(0)
提交回复
热议问题