I've set fillViewport to true to give the ListView the correct size, but this causes the ScrollView to stop being able to scroll. It works if I use fixed sizes for the listView, but I don't want to listViews to be scrollable.
<FrameLayout 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"
tools:context="com.example.pascal.x"
android:background="#FFFFFF">
<!-- TODO: Update blank fragment layout -->
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="+ add stuff"
android:id="@+id/button"
android:background="#00AEEF"
android:textColor="#FFF"
android:layout_gravity="center_horizontal|top" />
<ScrollView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:fillViewport="false"
android:layout_gravity="center_horizontal|bottom"
android:scrollbars="vertical"
android:id="@+id/scrollView" >
<LinearLayout
android:orientation="vertical"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="stuff"
android:id="@+id/textView"
android:textColor="#00AEEF" />
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:id="@+id/listView"
android:layout_gravity="center_horizontal" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="other stuff"
android:id="@+id/textView2"
android:textColor="#00AEEF" />
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:id="@+id/listView2" />
</LinearLayout>
</ScrollView>
</LinearLayout>