public void setHeaderAndEmpty(boolean isHeadAndEmpty) {
        setHeaderFooterEmpty(isHeadAndEmpty, false);
    }
Call before {@link RecyclerView#setAdapter(RecyclerView.Adapter)}

@param isHeadAndEmpty false will not show headView if the data is empty true will show emptyView and headView
common/src/main/java/com/sxjs/common/base/baseadapter/BaseQuickAdapter.java