Edittext resizes in landscape mode when softkeyboard appears

后端 未结 1 932
予麋鹿
予麋鹿 2021-02-07 00:27

When I\'m in landscape mode with an EditText on the screen, if I tap in the EditText to bring up the soft keyboard, the EditText expands in both dimensions to take up the entire

相关标签:
1条回答
  • 2021-02-07 00:56

    You need to add android:imeOptions="flagNoExtractUi" to prevent this behavior.

    You can read more about it here: http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptions

    0 讨论(0)
提交回复
热议问题