更新时间:2023-11-19 12:17:46
setContentView
方法应该在调用 findViewById
之前以适当的布局调用之前.它通常在 onCreate(Bundle savedInstance)
方法中调用.
The setContentView
method should be called with appropriate layout before calling findViewById
. It is usually called in onCreate(Bundle savedInstance)
method.