lundi 11 février 2019

How to randomize radio button in Android

I'm trying to make a multiple choice quiz. I have a problem when I want to get a multiple choice button randomly. I wonder how to randomize the position of the multiple choice button. This is an example of my multiple choice button code.

       rb1.setText(currentQuestion.getOption1());
        rb2.setText(currentQuestion.getOption2());
        rb3.setText(currentQuestion.getOption3());




Aucun commentaire:

Enregistrer un commentaire