Positioning EditText Above Keyboard

In your Manifest file add the following code for this particular activity

<activity android:windowSoftInputMode="adjustPan">

Check this doc for more info.


It happens sometimes that setting activity in manifest

android:windowSoftInputMode="stateVisible|adjustResize" 
android:windowSoftInputMode="adjustPan" 

not working with scrolling views containing EditText.

After research I figured out that to work in some cases parent layout has to be set android:fitsSystemWindows="true". Then native functionality of scrolling EditText above scrollbar working like a charm.


Simply setting android:fitsSystemWindows="true" in the layout xml worked for me.


use

android:windowSoftInputMode="stateVisible|adjustResize" 

in your Manifest file. See developer site for your reference