Problem using setEmptyView on a ListActivity
- by Pentium10
I have the following setup, and the empty view text doesn't show up...
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getListView().setEmptyView(findViewById(R.id.empty));
getListView().setTextFilterEnabled(true);
setListAdapter(null);// to have empty list
}
The layout file is:
…