Reputation: 1411
Im having a ScrollView which contains a Listview, However even if I scroll the listview, the three parameters in onscroll() method do not change, they remain the same as the initial state.
Here's my layout
Also my code for handling the scroll event,noted the contentlist is the listview not the scrollview.
However as you can see in the logcat, nothing change even if i scroll around and the visible item count should be two only
I wonder if its because of the height of the listview which cause this issue?
Thanks
Upvotes: 0
Views: 557
Reputation: 11137
Having ListView
inside of a ScrollView
always cause problems.. Why don't you just have the ListView
in the SwipeRefreshLayout
and use addHeaderView()
to display your LinearLayout
above it?
Upvotes: 1