开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜