本想简单的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>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货