I have a dynamic space between listView and ExpandListView. The idea is to expand the expand list view in the space first, and when the space consumed use the scrollView to show the parts off the screen. The problem is scrollView is not scrolling at all:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="250dp"
    android:layout_height="match_parent"
    android:id="@+id/menu_navigation"
    android:background="@drawable/gradient"
    tools:context=".NavigationDrawerFragment">
    <ScrollView
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:fillViewport="true">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">
            <ListView
                android:id="@+id/navigationTopList"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:choiceMode="singleChoice"
                android:divider="@android:color/transparent"
                android:dividerHeight="0dp"
                android:isScrollContainer="false"/>
// dynamic space
            <View android:layout_width="wrap_content"
                android:layout_height="0dp"
                android:layout_weight="1"/>
//should show on the bottom and expand in the dynamic space and if exceed should be scrolled through scrollView
            <ExpandableListView
                android:id="@+id/navigationBottomList"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:groupIndicator="@null"/>
        </LinearLayout>
    </ScrollView>
</LinearLayout>
 
     
     
    