开发者

How to keep the width of the Controls in the TableRow column

开发者 https://www.devze.com 2023-04-02 13:13 出处:网络
I have a tablerow in which i put in a textview with width==50dp;But when i add another tablerow which contains a textview with width==100dp,then the first textview has to be stretched to 100dp.

I have a tablerow in which i put in a textview with width==50dp;But when i add another tablerow which contains a textview with width==100dp,then the first textview has to be stretched to 100dp.

How can keep the width of the first开发者_运维百科 textview's width?


Use android:stretchColumns properties . To Know more Check out Link


You can also try this in layout for both textviews:

android:layout_width="0dp"

android:layout_weight="1"

This will give equal width to both the rows.

0

精彩评论

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