I am making an android app, but I'm stuck at how to get one checkbox to uncheck other boxes my checkboxes look like below. please answer like I am an idiot because I'm fairly new at this, but there should be some way for the box to check if other boxes are checked, and then uncheck them right= public void safariCheck(View view) { boolean checked = ((CheckBox) view).isChecked(); switch (view.getId()) { case R.id.FriendSafari: if (checked) { upper = 8; chainF = -1; chainR = -1; } else { upper = 1; } } }
jeudi 14 septembre 2017
Checkboxes unchecking other checkboxes
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire