直接在ListView初始化后添加以下代码段

TextView emptyView = new TextView(PhoneWhiteList.this);
        emptyView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
                LayoutParams.FILL_PARENT));
        emptyView.setText("没有添加来电白名单,\n请点击右上角添加按钮进行添加");
        emptyView.setGravity(Gravity.CENTER);
        emptyView.setVisibility(View.GONE);
        ((ViewGroup) mListView.getParent()).addView(emptyView);
        mListView.setEmptyView(emptyView);

效果截图

image