Spinner selection resulting in a specific layout
<p>I am wondering, if I want to create sort of a form in which there is a spinner at the top that you can choose from. Depending on what you choose, the rest of the Textview/Edit text will be displayed.</p>

<p>For example, you choose item 1 then a certain layout is displayed, and item 2 will lead to a different layout and so on.</p>

<p>What would be the best design for that? I know  Iwould have an item listener and based on the selection, I would "do something".
Would I create layout with spinner and empty "linearlayout" below, then based on selection I would inflate another xml file into a view and add it to that layout? Or would create all the forms in one XML file and set all layout to hidden and show only the one corresponding to selection?</p>

<p>How would you do it?
Thank you</p>
