xamarin for Android开发之回到UI线程

在Android中,UI更新只能在UI线程中,即主线程。

在子线程中更新UI需要回到UI线程中。有两种教简单的方法如下:

1、

View.Post(() => {  });

View.postDelay(() => {  });

2、

runOnUiThread(() => {  });

原文地址:https://www.cnblogs.com/bo10296/p/4929521.html