Android studio findViewById 返回null
setContentView(R.layout.activity_main); button = findViewById(R.id.button1);
setContentView必须位于findViewById之前,来回删改代码都搞错了^_^
setContentView(R.layout.activity_main); button = findViewById(R.id.button1);
setContentView必须位于findViewById之前,来回删改代码都搞错了^_^
Welcome to here
主页