在下面的代码中,只调用onScroll
方法并且永远不会调用onScrollStateChanged
方法,请您帮我解决此问题:
mGridView.setOnScrollListener(new OnScrollListener() {
@Override
public void onScroll(AbsListView view, int firstVisibleItem,
int visibleItemCount, int totalItemCount) {
check_text.setVisibility(View.VISIBLE);
System.out.println("Inside onScroll");
}
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
if(scrollState == SCROLL_STATE_IDLE)
{
check_text.setVisibility(View.VISIBLE);
System.out.println("Inside onScrollStateChanged");
}
}
});