I can't find开发者_StackOverflow this in the docs - isn't there a way to specify a View to use for a ListView if the adapter is empty?
Thanks
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));
精彩评论