There will be certain Solutions available that some times works and some times not
what I am using is working and will handle your scenario
Use the following Step by step
1- Add Scroll view to your layout inside the main layout
2- get Its reference
3- now use the following code snippet
editTextField.setOnFocusChangeListener(new OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
// TODO Auto-generated method stub
v.postDelayed(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
/*if(Build.VERSION.SDK.equals("4.1.1")||Build.VERSION.SDK.equals("4.1.2"))
{
}
else
{*/
scrollView.scrollBy(0, 150);
//}
}
}, 500);
}
});
when ever screen needs to adjust the overlay it will scroll up the screen