錯誤記錄-找不到控件

我這個錯誤可以說是粗心大意導致的了,預防下次再犯,所以記錄一下 先看下錯誤提示: Attempt to invoke virtual method ‘void android.widget.RadioButton.setChecked(boolean)’ on a null obj 錯誤原因: 其實只要仔細一看就能發現問題所在,首先程序先執行了inintView(); 方法,然後在這個方法裏我又用
相關文章
相關標籤/搜索