only the original that created a view hierarchy can touch its views

fragment调用activity里的方法,方法里的ui始终没有变化,然后仔细看了下这个错。

only the original that created a view hierarchy can touch its views_第1张图片

解决办法:只需要把你方法里的东西写在runOnUiThread里即可。浪费我半天时间

你可能感兴趣的:(only the original that created a view hierarchy can touch its views)