一个简单而诡异的布局问题,请教!
本想简单的3个TextView,自上而下排列,每个一行。可是,在模拟器上实际跑出来,却是只显示了第一个TextView。为什么呢?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id= "@+id/viewRst1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="rst1"
/>
<TextView
android:id="@+id/viewRst2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="rst2"
/>
<TextView
android:id="@+id/viewRst3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="rst3"
/>
</LinearLayout>