Disable Listview Scrolling Inside Scrollview
I am facing problem to implement two listview in scrollview. I have activity in which I have scrollview.  here is image what I want layout design actually design I want to make inv
Solution 1:
Do not use ListView inside ScrollView.
As you are using multiple ListView, so you should use android.support.v4.widget.NestedScrollView instead of ScrollView to get proper scrolling behavior.
NestedScrollViewis just likeScrollView, but it supports acting as both anestedscrollingparentandchildon both new and old versions of Android. Nested scrolling is enabled by default.
See documentation.
Here is an example:
<android.support.v4.widget.NestedScrollViewandroid:layout_width="match_parent"android:layout_height="match_parent"><LinearLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><ListViewandroid:id="@+id/listview1"android:layout_width="match_parent"android:layout_height="wrap_content"></ListView><ListViewandroid:id="@+id/listview2"android:layout_width="match_parent"android:layout_height="wrap_content"></ListView></LinearLayout></android.support.v4.widget.NestedScrollView>Hope this will help~
Post a Comment for "Disable Listview Scrolling Inside Scrollview"