我遇到了一个轻微的Android布局问题...
我有一个包含 LinearLayout 的 ScrollView 元素。我希望滚动视图填满整个设备屏幕,而线性布局填满滚动视图的整个高度。
我现在的代码导致 ScrollView 填满整个屏幕,但是 LinearLayout 只填满了 ScrollView 高度的一半左右。
以下是我的代码:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ff036c07">
<LinearLayout
android:background="#FF0000"
android:id="@+id/overview_form"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</LinearLayout>
</ScrollView>
有什么想法我错过了吗?