Search code examples
androidscrollviewandroid-nestedscrollview

Scroll View inside Nested Scroll View does't work


Is it true or not ? i want to scroll on the listview too inside my activity by using nested scroll view. Please help. Thanks in advance

<android.support.v4.widget.NestedScrollView
    android:id="@+id/login_form"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <LinearLayout
        android:id="@+id/insertkend_form"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <ListView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/listAksesoris">
            </ListView>

        </ScrollView>

   </LinearLayout>

</android.support.v4.widget.NestedScrollView>


Solution

  • It's work now, just remove scrollview and add in listview android:nestedScrollingEnabled="true".