ListView的设置emptyView的误区

setEmptyView(View)这个函数颇有误导性,有时可能会在代码中写EmptyView,像下面这样:  TextView tv= new TextView(this);  tv.setText("this is a empty view")  setEmptyView(tv); java 这个是不行的  解决方法:android TextView emptyView = new TextV
相关文章
相关标签/搜索