I am working on an android app and really enjoying it too. But today, I got stuck on a small problem with soft keyboard.
I have an EditText
at the bottom of the screen and when user clicks on it a keyboard pops up ,resizing the entire v开发者_如何转开发iew to show the EditText
above keyboard, which is as it should be. But if user doesn't do anything for sometime, phone sleeps and screen gets locked with the keyboard still present in the screen. When phone comes back after sleep, the keyboard seems to hide itself, leaving my views in a resized state. A blank space is shown where the keyboard has been present..I would be happy if
- The keyboard remains there after coming back from sleep..
- Let the keyboard hide,but my views should go back to original size, ie without any blank space..
What can I do to achieve any of these?
精彩评论