ListAdapter 没有数据时候会如何避免

ListAdapter没有数据时候会如何处理The View with the?empty?id is used automatically when the?ListAdap

ListAdapter 没有数据时候会如何处理

The View with the?empty?id is used automatically when the?ListAdapter?has no data for the ListView. The ListAdapter knows to look for this name by default. Alternatively, you could change the default empty view by using?setEmptyView(View)?on the ListView.