Make sure the content of your adapter is not modified from a background thread, but only from the UI thread

狂风中的少年 提交于 2019-12-05 16:00:39

your listView and editText are on the same layout? if the editText is on a dialog or something, it's possible that you are changing the text that is affecting the list from a different thread. wrap your update to the adapter with:

runOnUiThread(new Runnable() {
public void run() {
    adapter...
}
});
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!