Android, ListView IllegalStateException: “The content of the adapter has changed but ListView did not receive a notification”

后端 未结 25 2351
执念已碎
执念已碎 2020-11-22 16:59

What I want to do: run a background thread which calculates ListView contents and update ListView partially, while results are calculated.

W

25条回答
  •  独厮守ぢ
    2020-11-22 17:48

    I had the same problem, but I fixed it using the method

    requestLayout();
    

    from the class ListView

提交回复
热议问题