TableLayout (TableRow?) not sizing child Views as expected when adding them dynamically

后端 未结 3 673
-上瘾入骨i
-上瘾入骨i 2021-01-24 15:30

Context: I have a TableLayout (created using XML), which has one TableRow, which has one TextView. The code:

 

        
3条回答
  •  情书的邮戳
    2021-01-24 16:22

    Set height like this to the layout containing the ScrollView. It solved my own problem where tablelayout does not show last lines.

    android:layout_height="0dp"

提交回复
热议问题