Just like the title says, I have done some research and altered my code but still when I run it, it does not disable. Any idea why?
cb_leic.setOnCheckedChangeListener( new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton arg0, boolean isChecked) {
if(isChecked){
cb_leic.setEnabled(false); // disable checkbox
}
}
} );
Aucun commentaire:
Enregistrer un commentaire