I am making an android application in which I have a 3 textview and their corresponding 2 spinners and edittext. I want that when user selects "No. of times" as 3 which is string in spinner then there should be 3 textviews in the next screen

Here is a screenshot

<http://postimage.org/image/vk9ngksk9/8e94a435/>

Means to say if I select 2 from spinner there should be 2 textviews in the next screen.

Here is a screenshot of the next screen

<http://postimage.org/image/n25axcf8x/dbb0775d/>

So I want the number of textviews to correspond to the spinner selection.