开发者

Expand smaller items in a TableRow view

开发者 https://www.devze.com 2023-03-24 06:51 出处:网络
I have a table in my android app with two columns: a \"label\" column and a \"content\" one. It is made of a tableLayout view wit开发者_如何学Ch a bunch of TableRow items. Each one has 2 TextViews to

I have a table in my android app with two columns: a "label" column and a "content" one.

It is made of a tableLayout view wit开发者_如何学Ch a bunch of TableRow items. Each one has 2 TextViews to insert the labels and contents. Everything looks fine while the contents items and the labels have the same Height, but as soon as the content becomes multi-line, it mess up the display as I use the textViews background to make it a bit nicer.

I'd like to know if there is a simple way to expand the height of the label textview to be the same as the content one.

Thanks, Antoine

0

精彩评论

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