How to make EditText in landscape mode not expand to full screen?

1 answer 1

Either add EditText android:imeOptions="flagNoExtractUi" markup to xml android:imeOptions="flagNoExtractUi" , or in the editText.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI) code editText.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI)

  • I tried. Doesn't work - Igor
  • Understood. android: imeOptions = "flagNoExtractUi" - I shoved in AndroidManifest, which is why it did not work. - Igor