In my project I need to display questions and its options. Here the options are at max 20 with multiple answers. The options are not fixed for each question. That means for each question the options may be 2 or 3 or 6 or 18 or 2o. Since the question contains multiple answers I need to create checkboxes to display options dynamically. Based on the number of options for the question we need to display the checkboxes. How can I do that? Please help me regarding this.
Thanks in Advance
You can create an empty LinearLayout and call its addView() function
to add the checkboxes dynamically in your code.
For example,
Look at this turorial Android, Part III: Dynamic Layouts
EDIT: