title: Best way to make an interactive type of layout in android
body: <p>In my application i have a form to be filled which contains 10-15 fields. so i thought making it interactive would make sense rather than showing all the 10-15 fields at a time.</p>
  
  <p>I want it to be like:</p>
  
  <p>App: question1 as a Text</p>
  
  <p>User: answer1 in editText</p>
  
  <p>App and User will be their respective ImageViews.</p>
  
  <p>depending on the answer, 2nd question will be displayed.</p>
  
  <p>Approach 1: have all the imageViews, TextViews and EditText fields visibility set to false and make them visible after answering the previous question (next question Text will depend on the answer)</p>
  
  <p>actually i did this but there are few problems:</p>
  
  <p>problem 1: i made the layout a ScrollView, so user can scroll to the bottom of the layout(where views are invisible) which tells him that this is a long form with views invisible.</p>
  
  <p>problem 2: all the questions are TextViews, but all the answer fields are not EditText , some are spinners and some are checkboxes. so depending on the previous answer if i have to display a spinner or a checkbox wont work(it creates empty space if i skip any invisible view and go for the next view)</p>
  
  <p>Approach 2: dynamically create all views (i believe this will take some time, which is a Ux issue again)</p>
  
  <p>is there a better approach to achieve what i wanted?? and please let me know how to some my problem 1 and 2 if there is a solution</p>