java - Building a survey app for Android with a listview -
Say whether I want to create an app for Android that pulls data from a server that contains a list of surveys , In which each survey is a set of questions and a set of options (or answers) of each question
Now I am thinking of implementing every survey using a survey, list view Each line (item) in a question And each question will display a set of answers.
The first problem is to do with the type of question ... A question can be of binary answer format, so "Are you a male?" Then the two options "yes" and "no" can be an XML layout for that type of question. But then there are other types of questions, such as with an edit text as the "Describe your time in London" option. It works hard when I do not know how many options will appear inside a list item (line), that a question can be "your favorite food" and the list of options can be checkbox, so "pizza", " Bacon "," wedge "This is a 3 option type quuestion, but what if I have the same type of question but with 7 options say it.
How can I create an XML layout that will be compatible with the number of options for a specific question?
Thanks in advance.
Comments
Post a Comment