The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make s

我出现这个问题是引用资源文件问题

helper.getView(R.id.in_pic).setBackgroundResource(item.getResourceId()); //错的
helper.getView(R.id.in_pic).setBackground(getResources().getDrawable(item.getResourceId()));//对的

猜你喜欢

转载自www.cnblogs.com/dubo-/p/9082144.html
今日推荐