CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views
我在ImageLoader類中創(chuàng)建了Handler 通過(guò)message傳值,運(yùn)行程序后可以顯示圖片,滑動(dòng)就報(bào)錯(cuò)CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views
為什么?
2015-12-25
?是不是在子線程中更新UI了?用Handler,sendMessage方法傳給主線程,再用handlerMessage設(shè)置圖片就好了
2015-12-25
?是不是在子線程中更新UI了?用Handler,sendMessage方法傳給主線程,再用handlerMessage設(shè)置圖片就好了