我需要一个双列布局,其中右列是一个固定字符串,左列可以是任意长度的文本,并且如果它不合适,应该包装。如何在两列布局中固定固定长度和可变长度的TextViews?
换句话说,我想这一点:
+-----------------------------------------------------------+------------+
| This text may be any length and should wrap if it doesn't | Fixed Text |
| fit in the first column. | |
+-----------------------------------------------------------+------------+
而是我总是得到这样的:
+------------------------------------------------------------------------+
| This text may be any length and should wrap if it doesn't fit in the |
| first column. |
+------------------------------------------------------------------------+
我试过的RelativeLayout,并与宽度和重量的各种组合一的LinearLayout,但我通常会得到第二个结果。
而不是张贴我所有失败的尝试,有人可以只发布什么工作?这不应该是这么难。 > 8-(
在此先感谢...
这一个工作。谢谢! –