Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
、、は同じUIスレッドで順番に実行されていますonTouch()かonClick()?runOnUiThread()それとも、それらの間の同期の問題について心配する必要がありますか?
onTouch()
onClick()
runOnUiThread()
onTouch()、onClick()、runOnUiThread()は同じUIスレッドで順番に実行されていますか?
はい。99.9%の確率で、Androidはメインアプリケーションスレッドのメソッドを呼び出します。例外は次のとおりです。
AsyncTask