As the title suggests, I want to set a default view for a list activity. I have tried to do this :
TextView emptyView = new TextView(this);
emptyView.setText("No lists available");
this.getListView().setEmptyView(emptyView);
But this did not work.
The problem is that
emptyView
is never attached to anything, if you useaddView()
:Now you'll see it!
I wrote a quick Runnable to alternate between empty / "full"...