Code example for AbsListView.OnScrollListener

Methods: onScrollStateChanged

0
        if (mCurrentScrollState == SCROLL_STATE_IDLE) {
            mBounceHack = false;
        } 
 
        if (mOnScrollListener != null) {
            mOnScrollListener.onScrollStateChanged(view, scrollState);
        } 
    } 
 
    public void prepareForRefresh() { 
        resetHeaderPadding(); 
 
        mRefreshViewImage.setVisibility(View.GONE);
        // We need this hack, otherwise it will keep the previous drawable. 
        mRefreshViewImage.setImageDrawable(null);
        mRefreshViewProgress.setVisibility(View.VISIBLE);
 
        // Set refresh view text to the refreshing label 
        mRefreshViewText.setText(R.string.pull_to_refresh_refreshing_label);
 
        mRefreshState = REFRESHING;