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
相關文章
相關標籤/搜索