public int getHeaderLayoutCount() {
        if (mHeaderLayout == null || mHeaderLayout.getChildCount() == 0) {
            return 0;
        }
        return 1;
    }
if addHeaderView will be return 1, if not will be return 0
common/src/main/java/com/sxjs/common/base/baseadapter/BaseQuickAdapter.java