0
我有一个水平的LinearyLayout,我想填充两个TextView元素。但我是他们通过最大限度地减少线路的最大数量来最大化空间。只有布局可以填充layout_weight可用空间
<LinearLayout
android:layout_height="wrap_content"
android:orientation="horizontal"
android:baselineAligned="false"
>
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"
android:orientation="vertical"
>
<TextView
android:text="AAAAAAAAAA AAAA AAA A"
/>
</LinearLayout>
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"
android:orientation="vertical"
>
<TextView
android:text="BBBB BBBBBBBB BBBB"
/>
</LinearLayout>
</LinearLayout>
这些字符串在大小上有很大的不同。他们每个人都需要被固定在屏幕
[AAAAAAA BBBBBBB]
两侧 -
[AAAAAAAisLong BBBB]
[AA BBBBBBBBBBBBB]
(多行 - 相同行数)
[AAAAAAAA BBBBBBBB]
[AAAAA BBBB]
[AAAAA BBBBBBBBBBB]
[AAA BBBBBBBBB]
我怎样写一个xml布局的最大数量减少通过改变中间点为两个视图的线?同时保持它们之间有空间的情况。谢谢