<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:shrinkColumns="0" > <TableRow android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtzi" android:textSize="20sp"/> </TableRow> ... </TableLayout>
textview里面设置ellipsize属性和singline属性时要注意,不然会出现省略号的情况。(在table的格子中不能自动换行)