how to populate a listview asynchronously?

后端 未结 6 942
说谎
说谎 2020-12-29 07:03

I am wondering how I should implement a ListAdapter that loads its views asynchronously into a ListView? I want to do this because I am populating

6条回答
  •  粉色の甜心
    2020-12-29 07:50

    The easiest thing is to use an AsyncTask to do the loading and call publishProgress as each item is loaded (or, if you want to load all items and have them appear all at once, update the UI in onPostExecute

提交回复
热议问题