Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 16, 2019 05:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/63296f4330d0e27ff3456818591dad16 to your computer and use it in GitHub Desktop.
Save parzibyte/63296f4330d0e27ff3456818591dad16 to your computer and use it in GitHub Desktop.
int idDeRadioButtonSeleccionado = radioGroupTipoLugar.getCheckedRadioButtonId();
if (idDeRadioButtonSeleccionado == radioButtonPrivado.getId()) {
// OK seleccionaron la opción "privado"
} else if (idDeRadioButtonSeleccionado == radioButtonPublico.getId()) {
// Seleccionaron el público
// Aquí pueden ir más else if
} else {
// Mmmh, imposible pero pon el else por las dudas
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment