1 <?XML version= "1.0" encoding= "Utf-8"?>2 <Tablelayoutxmlns:android= "Http://schemas.android.com/apk/res/android"3 Android:layout_width= "Match_parent"4 Android:layout_height= "Match_parent" >5 6 <TableRow7 Android:layout_width= "Match_parent"8 Android:layout_height= "Wrap_content" >9 Ten <TextView One Android:layout_width= "0dip" A Android:layout_height= "Wrap_content" - Android:layout_weight= "1" - android:gravity= "Center" the Android:text= "@string/hello" - android:textsize= "30SP" /> - - <TextView + Android:layout_width= "0dip" - Android:layout_height= "Wrap_content" + Android:layout_weight= "1" A android:gravity= "Center" at Android:text= "@string/hello" - android:textsize= "30SP" /> - </TableRow> - - <TableRow - Android:layout_width= "Match_parent" in Android:layout_height= "Wrap_content" > - to <TextView + Android:layout_width= "0dip" - Android:layout_height= "Wrap_content" the Android:layout_weight= "1" * android:gravity= "Center" $ Android:text= "@string/hello"Panax Notoginseng android:textsize= "30SP" /> - the <TextView + Android:layout_width= "0dip" A Android:layout_height= "Wrap_content" the Android:layout_weight= "1" + android:gravity= "Center" - Android:text= "@string/hello" $ android:textsize= "30SP" /> $ </TableRow> - - <TableRow the Android:layout_width= "Match_parent" - Android:layout_height= "Wrap_content" >Wuyi the <TextView - Android:layout_width= "0dip" Wu Android:layout_height= "Wrap_content" - Android:layout_weight= "1" About android:gravity= "Center" $ Android:text= "@string/hello" - android:textsize= "30SP" /> - - <TextView A Android:layout_width= "0dip" + Android:layout_height= "Wrap_content" the Android:layout_weight= "1" - android:gravity= "Center" $ Android:text= "@string/hello" the android:textsize= "30SP" /> the </TableRow> the the </Tablelayout>
Table layout
Android Table layout