Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ListView ArrayAdapter data updates Best Practices

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.

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?

Thanks, Totem.

like image 799
totem Avatar asked Nov 29 '22 18:11

totem


1 Answers

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

Google IO listview Video

like image 84
Travis Avatar answered Dec 09 '22 17:12

Travis