摘要:
TextView tv=new TextView(this);tv.setText("未查询到结果");tv.setGravity(Gravity.CENTER);searchResultlistView.setEmptyView(tv);LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);addContentView(tv, params); 阅读全文