My problem: starting from the second time the software keyboard is shown on the screen, it entirely hides my EditText.
Attribute android:windowSoftInputMode=\"adjus
subclassed EditText and overridden the method onKeyPreIme(int keyCode, KeyEvent event) like this:
@Override
public boolean onKeyPreIme(int keyCode, KeyEvent event)
{
if(keyCode == KeyEvent.KEYCODE_BACK)
{
clearFocus();
}
return super.onKeyPreIme(keyCode, event);
}
Now when the back key is pressed, the EditText lost the focus. Then tapping it again adjustpan will work.