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.
ListAdapter 没有数据时候会如何处理
最新推荐文章于 2018-04-28 22:21:49 发布
当ListView的数据为空时,会自动使用带有空id的视图。ListAdapter默认知道查找该视图。此外,还可以通过调用ListView的setEmptyView(View)方法来设置默认的空视图。
3464

被折叠的 条评论
为什么被折叠?



