private void clearHeader() {
        if (mHeader != null) {
            removeView(mHeader);
            mHeader = null;
            mHeaderId = null;
            mHeaderPosition = null;
            mHeaderOffset = null;

            // reset the top clipping length
            mList.setTopClippingLength(0);
            updateHeaderVisibilities();
        }
    }
private void clearHeader ( ) { if ( mHeader != null ) { removeView ( mHeader ) ; mHeader = null ; mHeaderId = null ; mHeaderPosition = null ; mHeaderOffset = null ; mList . setTopClippingLength ( 0 ) ; updateHeaderVisibilities ( ) ; } }
This is called in response to the data set or the adapter changing