is there any method that can be called to find out the scrolling is not in action?
or is there any listener that can is set to call when the listview stops scrolling?
Thanks in advance!
listView.setOnScrollListener(new OnScrollListener() {
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
switch (scrollState) {
case OnScrollListener.SCROLL_STATE_IDLE:
Log.i("", "here scrolling is finished");
break;
case OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:
Log.i("", "here scrolling is finished");
case OnScrollListener.SCROLL_STATE_FLING:
Log.i("", "its scrolling....");
break;
default:
break;
}
}
Good luck...
You need to implement OnScrollListener
which provides methods that can help you to detect the scrolling position of your ListView
. Read this post.