<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->
layout_weight 指的是比重,如下 t1 不显示, t2,t3 占屏幕的一半, T4 占令一半。
< LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android"
android:orientation = "horizontal"
android:layout_width = "fill_parent"
android:layout_height = "fill_parent" >
< TextView
android:background = "@drawable/red"
android:layout_width = "0dip"
android:layout_height = "fill_parent"
/>
< TextView
android:background = "@drawable/green"
android:layout_width = "0dip"
android:layout_height = "fill_parent"
android:layout_weight = "1" />
< TextView
android:background = "@drawable/blue"
android:layout_width = "0dip"
android:layout_height = "fill_parent"
android:layout_weight = "1" />
< TextView
android:background = "@drawable/yellow"
android:layout_width = "0dip"
android:layout_height = "fill_parent"
android:layout_weight = "2" />
</ LinearLayout >