I’ve made custom adapter and call notifyDataSetChanged() then data updates. But after call notifyDataSetChanged() I can’t stop scrolling of listview by touch.
I looked at android’s source code and found that code in file AbsListView.class (which is parent of ListView)
if (!mDataChanged) { ... }
There is a code to stop scrolling ListView on touch event.
So then we call notifyDataSetChanged() we set mDataChanged in true and so can’t stop scrolling.
Could u help me to find out how to enable stop scrolling after data change?
Probably, you are reading data while the ListView calls
getItemmethod. Using an asynchronous data loading (Handler) could be a better idea. You may find more information in this answer.