1
我用2个线性布局分割屏幕包含文本视图,这可能包含大量线条,因此使用滚动,但我们的第一行被废弃,无法查看它。滚动不显示整个内容
下面的代码片段
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="200dp"
android:orientation="vertical" >
<ScrollView
android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id="@+id/question"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Question"
android:textSize="20dp" >
</TextView>
</ScrollView>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="250dp"
android:orientation="vertical" >
<ScrollView
android:id="@+id/ScrollView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id="@+id/answer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Answer"
android:textSize="20dp"
android:visibility="invisible" >
</TextView>
</ScrollView>
</LinearLayout>
也显示你的父母布局。 – 2012-03-16 09:17:05