On Android devices that use soft keyboards, I want to prevent the fullscreen keyboard editing view (shown below) from appearing when in landscape mode (i.e. I want to see only the soft keyboard itself and my view behind it).
I assume this can be achieved using the setExtractViewShown(false)
method on InputMethodService
, but I am unable to access the default instance of this and do not want to implement a custom input method.
Edited to add: the view to which input is going is not a TextView
(it's a View
with a custom InputConnection
implementation), so android:imeOptions="flagNoExtractUi"
won't work here.
flagNoExtractUi
orIME_FLAG_NO_EXTRACT_UI
. However,in the documentation forIME_FLAG_NO_EXTRACT_UI
, which corresponds toflagNoExtractUi
, it states that "Using this flag is discouraged and it may become deprecated in the future", soflagNoFullscreen
is the recommended option. – Koval