关于checkbox的使用问题!
先上代码:
TextView labelView;CheckBox checkBox;labelView = (TextView)findViewById(R.id.label); checkBox = (CheckBox)findViewById(R.id.block); if(checkBox==null)System.out.println("checkBox为空!"); if(labelView==null)System.out.println("labelView空!");