Android的notifyDataSetChanged [英] Android notifyDataSetChanged

查看:166
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆