vault backup: 2025-03-04 11:12:06

This commit is contained in:
2025-03-04 11:12:06 +08:00
parent fd1b61cd3b
commit d1e51bfd2f
144 changed files with 0 additions and 0 deletions

8
-21.04. Android/UI.md Normal file
View File

@@ -0,0 +1,8 @@
## 在thread更新UI
Android framework只能在main thread裡更新UI若需要在其他的thread更新UI的話需要呼叫activity的`runOnUiThread()`
例:
```kotlin
activity?.runOnUiThread {
activity?.findViewById<TextView>(R.id.textView)?.text = "You say: " + call.parameters["something"]
}
```