问题现象:源代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/TableLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="top" > <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/abc"
android:layout_width="fill_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/tv1" /> </TableLayout> </LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/TableLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="top" > <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/abc"
android:layout_width="fill_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/tv1" /> </TableLayout> </LinearLayout>
还有就是xmlns:android="http://schemas.android.com/apk/res/android"只需要一个就可以了