0

As I understood android: windowSoftInputMode = "stateUnchanged" will remember the state.

Example: The keyboard is open, the application went to onStop, then when the application returned to onResume I assume the keyboard will reopen, but it doesn't, it is closed. I tried it both programmatically and on different phones. Please tell me how to achieve the desired result, as in whatsapp and telegram

iormark
  • 13
  • 3
  • according to this: https://stackoverflow.com/questions/1109022/how-do-you-close-hide-the-android-soft-keyboard-using-java you can hide and show your keyboard programmatically. You can simply remember the keyboard state once you get "onPause" event and once you get onResume, check the state and change the keyboard accordingly. If you were focused on a view and want it to receive focus as well, you can do the same. – Dan Baruch Nov 15 '20 at 11:26

0 Answers0