开发者

Table row wider than phone width

I have a TableRow with a decent amou开发者_如何学编程nt of text in one of the columns. This text causes the table to be wider than the width of the phone, and so the right side of the data is cutoff.

I would like to wrap the text to the next row, but I can't tell how to do this. I tried setting singleLine="false", but that doesn't seem to do anything. Alternatively, I would be ok truncating the data, but there doesn't seem to be a great way of doing this either.


I ended up using a LinearLayout instead of a TableLayout. This does wordwrap by default and is close enough to TableLayout for my use.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜