Android的notifyDataSetChanged [英] Android notifyDataSetChanged
问题描述
我有一个充满自定义的 ArrayAdapter
列表。
I have a list which is filled with a custom ArrayAdapter
.
我想更新进度条每一秒,所以我试图用 notifyDataSetChanged()
,以重绘列表中,但它似乎并没有工作。
I want to update a progress bar every second, so I am trying to use notifyDataSetChanged()
in order to repaint the list but it doesn't seem to work.
推荐答案
你是如何更新将提供给列表
数据结构 ArrayAdapter
?
How are you updating the List
data structure that is feeding ArrayAdapter
?
请在这里看到我的回答:<一href="http://stackoverflow.com/questions/3669325/notifydatasetchanged-example/5092426#5092426">notifyDataSetChanged例如
Please see my answer here: notifyDataSetChanged example
对于有关问题的 ArrayAdapters
和更新列表
保存数据 notifyDataSetChanged
工作
for issues regarding ArrayAdapters
and updating the List
that holds data for notifyDataSetChanged
to work.
这篇关于Android的notifyDataSetChanged的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!