回答編集履歴
1
refine
test
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
UIスレッド以外から[`invalidate`](https://developer.android.com/reference/android/view/View.html#invalidate())メソッドを呼び出してはいけません。
|
1
|
+
UIスレッド以外から[`invalidate`](https://developer.android.com/reference/android/view/View.html#invalidate())メソッドを呼び出してはいけません。Android全般にわたる制約として、自作スレッドからのUI直接操作は禁止されています。
|
2
2
|
|
3
3
|
|
4
|
+
|
5
|
+
> `void invalidate ()`
|
4
6
|
|
5
7
|
> This must be called from a UI thread. To call from a non-UI thread, call `postInvalidate()`.
|
6
8
|
|
@@ -10,6 +12,8 @@
|
|
10
12
|
|
11
13
|
|
12
14
|
|
15
|
+
> `void postInvalidate()`
|
16
|
+
|
13
17
|
> Cause an invalidate to happen on a subsequent cycle through the event loop. Use this to invalidate the View from a non-UI thread.
|
14
18
|
|
15
19
|
> This method can be invoked from outside of the UI thread only when this View is attached to a window.
|