草庐IT

listViewScore

全部标签

java - 如何让 notifyDatasetChanged() 与 ListAdapter 一起工作?

现在我使用setAdapter来更新我的ListView,但我认为正确的方法是使用notifiyDatasetChanged()并且我无法让它在我的主类中工作(它在适配器中)。这是错误:未为类型ListAdapter定义方法notifyDatasetChanged()我猜有更好的方法可以做到这一点-谁能给我指出正确的方向?这是我的代码的相关部分:publicclassScoreListextendsSherlockFragmentActivity{privateListViewlistViewScore;staticListlistScore=newArrayList();@Overr