I have to build a dynamic form in my activity depending on the data retrieved via HTTP that is popullated from XML.
This could be one or more RadioGroup
s each with exactly three RadioButton
s. After RadioGroups I need to place two EditText
and one CheckBox
control with submit button afterwards.
I have prepared a LinearLayout
with vertical orientation and unique ID to be addressed from code and I expect that I can create a form control within a Java code without defining in android XML layout and adding to this LinearLayout
.
I was googling for a few hours but could not find any example how to do this.
Could anyone please provide some example how to create e.g. one RadioGruop
with 1-2 RadioButton
s and add it to the LinearLayout
(that is prepared in XML layout)?
Many thanks for any advice!!!