Récupérer l'élément sélectionné dans un RadioGroup ?

amine448 Messages postés 15 Statut Membre -  
BunoCS Messages postés 16550 Statut Modérateur -
Bonjour. Comment fait-on pour récupérer l'élément sélectionné dans un RadioGroup. Merci !

1 réponse

BunoCS Messages postés 16550 Statut Modérateur 3 919
 
Bonjour,

int radioButtonID = radioGroup.getCheckedRadioButtonId();


https://developer.android.com/reference/android/widget/RadioGroup?hl=en

0