How can I update a single row in a ListView?

前端 未结 11 2062
时光说笑
时光说笑 2020-11-22 17:07

I have a ListView which displays news items. They contain an image, a title and some text. The image is loaded in a separate thread (with a queue and all) and w

11条回答
  •  春和景丽
    2020-11-22 17:40

    In addition to this solution (https://stackoverflow.com/a/3727813/5218712) just want to add that it should work only if listView.getChildCount() == yourDataList.size(); There could be additional view inside ListView.

    Example of how the child elements are populated:

提交回复
热议问题