tags:

views:

51

answers:

1

Hi,

I can't find this in the docs - isn't there a way to specify a View to use for a ListView if the adapter is empty?

Thanks

+1  A: 

You can use setEmptyView and tell the current ListView to display a specific View when the adapter is empty, like so

getListView().setEmptyView(findViewById(R.id.empty));
Anthony Forloney