Code example for AbsListView.OnScrollListener

Methods: onScrollStateChanged

0
    } 
 
    @Override 
    public void onScrollStateChanged(AbsListView view, int scrollState) {
        if (mOnScrollListener != null) {
            mOnScrollListener.onScrollStateChanged(view, scrollState);
        } 
    } 
 
    private View getSectionHeaderView(int section, View oldView) {
        boolean shouldLayout = section != mCurrentSection || oldView == null;
 
        View view = mAdapter.getSectionHeaderView(section, oldView, this);
        if (shouldLayout) {
            // a new section, thus a new header. We should lay it out again 
            ensurePinnedHeaderLayout(view);
            mCurrentSection = section;
        } 
        return view;
    }