TableRow span not working for dynamically added rows

前端 未结 2 533
长情又很酷
长情又很酷 2021-01-18 17:51

I have the following problem spanning dynamically added rows to a TableLayout inside a scroll view. The rows follow this pattern:

Row 1: Cell spanned over the whole

2条回答
  •  自闭症患者
    2021-01-18 18:20

    OK, I found the solution. It was simply to drop the TableRow tag for the row that I wanted to span across the table.

    table_span_row.xml

    
    
    
    
    
    

    I do not know what will happen if I had 3 columns instead and wanted to span one of the cells on two of them :)

提交回复
热议问题