发布网友 发布时间:2023-06-27 02:05
共2个回答
热心网友 时间:2024-12-05 10:17
官方sdk中的解释:onCreate(Bundle) is where you initialize your activity. Most
importantly, here you will usually call setContentView(int)
with a layout resource defining your UI, and using findViewById(int)
to retrieve the widgets in that UI that you need to interact with
programmatically.
里面说让你设置view,找到自己的UI控件来使用它们。那意思就是说都是在UI主线程里面完成这些操作了。
热心网友 时间:2024-12-05 10:17
onCreate是UI线程是主线程