由网友(谁给我的QQ喂了止咳糖浆)分享简介:我有一个充满自定义的 ArrayAdapter 列表。I have a list which is filled with a custom ArrayAdapter.我想更新进度条每一秒,所以我试图用 notifyDataSetChanged(),以重绘列表中,但它似乎并没有工作。 I want to upda...
我有一个充满自定义的 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
?
请在这里看到我的回答: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.
相关推荐
最新文章