mListView = (ListView) findViewById(R.id.listview); mListView.setEmptyView(findViewById(R.id.empty_layout));//设置内容为空时显示的视图