安卓的ListView ArrayAdapter数据更新的最佳做法

问题描述:

我有一个正在不断接受新的价值观形成套接字线程多列表视图的活动,另一个线程解析数据,并更新阵列适配器,那么UI线程调用notifyDataSetChanged(),使该列表刷新。

I have an activity with multiple list views that are continuously receiving new values form a socket thread, another thread parses the data and updates the array adapters, then the ui thread calls notifyDataSetChanged() to cause the list to refresh.

我的问题是,即时通讯清爽所有列表几个第二时间,这将导致用户界面是非常laggy当一些动画需要发生

My issue is that im refreshing all the list a couple of time a second, this causes the UI to be very laggy when some animations need to happen.

我在想,最好的办法是更新多个列表有多个值每秒都会更改了什么?

I was wondering what the best way is to update multiple lists with multiple value changes every second?

谢谢,   图腾。

我肯定会跟着他们在谷歌IO今年给了指引。

I would definately follow the guidelines they gave at Google IO this year.

谷歌IO列表视图视频