vendredi 3 février 2017

listview "exam type" with checkbox

I want to do an activity with a listView that display for each element a question and some possible answer on checkbox or radio buttons. I have two arrays, one with the question and one with the answers. In the answer array i have each element has 3 attributes : the id, the question type (checkbox or radiobutton) and the question itself. The answer for the question in questions[0] are in answers[0] and so on. I had to control what type of question I get and then create checkbox or radiobutton. Obviously after this I had to get all the answer and put them into an array when I click a button. Has someone any ideas on how to do this?

Thanks




Aucun commentaire:

Enregistrer un commentaire