I have a PopupWindow that is shown when a user is typing in an EditText. This popup offers him some suggestions. My problem is that when the Popup is shown, a part of it is displayed over the Keyboard on the screen, preventing the user to continue typing. Does anyone know why of this behaviour and how could I fix it?
To have your popupwindow behind the softkeyboard just set this line:
popupWindow.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
and also
popupWindow.setFocusable(false);
popupWindow.setOutsideTouchable(false);
popupWindow.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
This is working with lollipop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With