ToggleButton的接口函数的CompoundButton arg0参数没用到,他是如何被调用的的?
public void onCheckedChanged(CompoundButton arg0, boolean ischeck) {
// TODO Auto-generated method stub
img.setBackgroundResource(ischeck?R.drawable.on:R.drawable.off);
}
public void onCheckedChanged(CompoundButton arg0, boolean ischeck) {
// TODO Auto-generated method stub
img.setBackgroundResource(ischeck?R.drawable.on:R.drawable.off);
}
2016-11-12
举报