Récupérer l'élément sélectionné dans un RadioGroup ?
amine448
Messages postés
15
Statut
Membre
-
BunoCS Messages postés 5033 Date d'inscription Statut Modérateur Dernière intervention -
BunoCS Messages postés 5033 Date d'inscription Statut Modérateur Dernière intervention -
Bonjour. Comment fait-on pour récupérer l'élément sélectionné dans un RadioGroup. Merci !
1 réponse
-
Bonjour,
int radioButtonID = radioGroup.getCheckedRadioButtonId();
https://developer.android.com/reference/android/widget/RadioGroup?hl=en