This is because you are using CoordinatorLayout
with ListView
. You can change your implementation to RecyclerView
to achieve correct scroll.
or If you are tagetting above 5.0, you can use the following piece of code
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
listView.setNestedScrollingEnabled(true);
}
I think CoordinatorLayout
only works with the children of NestedScrollingChild.