如何刷新Android列表视图? [英] How to refresh Android listview?
本文介绍了如何刷新Android列表视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在添加/删除动态数据后刷新Android ListView
?
How to refresh an Android ListView
after adding/deleting dynamic data?
推荐答案
调用 notifyDataSetChanged()
在您的 Adapter
对象上修改了该适配器中的数据.
Call notifyDataSetChanged()
on your Adapter
object once you've modified the data in that adapter.
关于如何/何时调用 notifyDataSetChanged()
的一些其他细节可以在 这个 Google I/O 视频.
Some additional specifics on how/when to call notifyDataSetChanged()
can be viewed in this Google I/O video.
这篇关于如何刷新Android列表视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文