Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 16, 2019 05:20
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/b4cfedc19388bd425b848b991636b482 to your computer and use it in GitHub Desktop.
Save parzibyte/b4cfedc19388bd425b848b991636b482 to your computer and use it in GitHub Desktop.
radioGroupTipoLugar.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(RadioGroup radioGroup, int i) {
// Ahora i es el id del elemento seleccionado. Nota: es el id, no el índice
// compara usando radioButtonPrivado.getId() == i
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment