public void removeHeaderView(View header) {
        if (getHeaderLayoutCount() == 0) return;

        mHeaderLayout.removeView(header);
        if (mHeaderLayout.getChildCount() == 0) {
            int position = getHeaderViewPosition();
            if (position != -1) {
                notifyItemRemoved(position);
            }
        }
    }
remove header view from mHeaderLayout.
When the child count of mHeaderLayout is 0, mHeaderLayout will be set to null.

@param header
common/src/main/java/com/sxjs/common/base/baseadapter/BaseQuickAdapter.java