Is there any way to change android:windowSoftInputMode value from java class?
Use the following to change the softInput type for an Activity.
getWindow().setSoftInputMode(EditorInfo.IME_ACTION_DONE);
Use the following to change the softInput type for an EditText.
mEditText.setImeOptions(EditorInfo.IME_ACTION_DONE);
Or:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING);