title: Android - build dynamic form from code
body: <p>I have to build a dynamic form in my activity depending on the data retrieved via HTTP that is popullated from XML.</p>
  
  <p>This could be one or more <code>RadioGroup</code>s each with exactly three <code>RadioButton</code>s. After RadioGroups I need to place two <code>EditText</code> and one <code>CheckBox</code> control with submit button afterwards.</p>
  
  <p>I have prepared a <code>LinearLayout</code> 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 <code>LinearLayout</code>.</p>
  
  <p>I was googling for a few hours but could not find any example how to do this.</p>
  
  <p>Could anyone please provide some example how to create e.g. one <code>RadioGruop</code> with 1-2 <code>RadioButton</code>s and add it to the <code>LinearLayout</code> (that is prepared in XML layout)?</p>
  
  <p>Many thanks for any advice!!!</p>