返回博主主页

Android studio findViewById 返回null

setContentView(R.layout.activity_main);
button = findViewById(R.id.button1);
setContentView必须位于findViewById之前,来回删改代码都搞错了^_^
posted @ 2022-03-02 17:44  懒惰的星期六  阅读(125)  评论(0编辑  收藏  举报

Welcome to here

主页