android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views
原因:在子線程中更改UI操作導(dǎo)致的錯(cuò)誤
解決辦法:用handler去創(chuàng)建一個(gè)子線程執(zhí)行耗時(shí)操作,然后回到主線程更改UI界面

原因:在子線程中更改UI操作導(dǎo)致的錯(cuò)誤
解決辦法:用handler去創(chuàng)建一個(gè)子線程執(zhí)行耗時(shí)操作,然后回到主線程更改UI界面