title: How to add conditional fields and sections to forms in Android app
body: <p>I am building an android app that contains a form. The form has some fields that are to be included only if a user answered YES to a previous question. For example, the user is applying for a loan. So the user is asked to enter name and address. Then the user is asked <code>What is your employment status</code>? If the user answers <code>employed</code> or <code>self-employed</code> THEN a section about <code>employment</code> should be added to the form where user will enter data such as <code>job title</code>, <code>employer name</code>, <code>salary</code>, etc.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>first name: John
  last name: Smith
  marital status: (if user selects married, then a section about spouse should be added to the form)
  employment status: (if user selects employed, then a section about employer should be added to the form)
  date of birth:
  email:
  </code></pre>
  
  <p>Note that the <code>conditional sections</code> are not added right under the question that triggered them. Rather, they are added at some later location on the form.</p>