public void removeAllHeaderView() {
        if (getHeaderLayoutCount() == 0) return;

        mHeaderLayout.removeAllViews();
        int position = getHeaderViewPosition();
        if (position != -1) {
            notifyItemRemoved(position);
        }
    }
remove all header view from mHeaderLayout and set null to mHeaderLayout
common/src/main/java/com/sxjs/common/base/baseadapter/BaseQuickAdapter.java