设置没有数据时显示的默许布局
setEmptyView这个方法传入的是一个view,
TextView emptytext=new TextView(this);
emptytext.setText("the list is empty");
listview.setEmptyView(emptytext);TextViesetEmptyView这个方法传入的是一个view,
TextView emptytext=new TextView(this);
emptytext.setText("the list is empty");
listview.setEmptyView(emptytext);TextVie