I am trying to display multiple GridView in a LinearLayout and ScrollView but if the content of the first scroll view is more then the first GridView fills the screen and the scroll is not working. here is my current layout
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/FrameLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ScrollView
android:id="@+id/scrollview"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/owngroup_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/own_groups"
android:textAppearance="?android:attr/textAppearanceLarge" />
<GridView
android:id="@+id/GridView1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</GridView>
<TextView
android:id="@+id/ingroup_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/in_groups"
android:textAppearance="?android:attr/textAppearanceLarge" />
<GridView
android:id="@+id/inGroups"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</GridView>
</LinearLayout>
</ScrollView>
</FrameLayout>