make an edit text appear between the top and the soft keyboard of the device in android
I have a scrollview layout with many ViewsStubs and these views stubs are inflated (displayed) depending on the user actions like.....answering the 1st questions makes the 2nd question and answer field(editText) appear

my problem is after answering the 1st question and clicking submit, the next question is made visible but the answer field is hidden under the soft keyboard...user cannot see what he is typing.

what i want is any newly displayed editText/spinner/checkbox must appear at the top of the screen (dynamically scroll to these views).

how to achieve this??
make an edit text appear between the top and the soft keyboard of the device in android
===

I have a scrollview layout with many ViewsStubs and these views stubs are inflated (displayed) depending on the user actions like.....answering the 1st questions makes the 2nd question and answer field(editText) appear

my problem is after answering the 1st question and clicking submit, the next question is made visible but the answer field is hidden under the soft keyboard...user cannot see what he is typing.

what i want is any newly displayed editText/spinner/checkbox must appear at the top of the screen (dynamically scroll to these views).

how to achieve this??