0
<TableLayout android:layout_width="match_parent" android:id="@+id/tableLayout1" android:layout_height="wrap_content" android:stretchColumns="1">
<TableRow android:id="@+id/tableRow1" android:layout_width="wrap_content" android:layout_height="wrap_content">
    <TextView android:text="my name is Tarzan and i lives in Amazon Jungle. I want an android phone." android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
    <TextView android:text="my name is Mowgly and i lives in Amazon Jungle. I want an android phone." android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
</TableRow>

我有一个包含两列的表格,我将 TextViews 放在两列中。我拉伸第二列..但是,当我在两个 TextViews 中设置长文本时,表格超出了电话的限制,所以我看不到。 . 如果我用android:layout_width="fill_parent".. 设置表格布局也是一样的。我该怎么办?

4

1 回答 1

0

android:maxWidth="100dip"..在你的textView中添加这样一个标签..

于 2011-06-22T09:38:01.710 回答