agraham Expert Licensed User Longtime User May 27, 2019 #1 I've searched the forum for this and found nothing, but maybe I can't frame the search term properly! In a couple of my apps, and some from the store as well, when an activity is in landscape mode tapping an EditText control replaces the EditText by some sort of input control that occupies the entire space above the keyboard with a 'Done' button to the right. An Internet search indicates that adding this line to the manifest might stop this and show the EditText as it does when in portrait mode. Code: Copy AddManifestText(<edtSource android:imeOptions="flagNoExtractUi|flagNoFullscreen" />) However this doesn't seem to work. Has anyone else experienced this and found a work around? EDIT: Perhaps this doesn't work because the EditText is added by code rather than xml. I'll carry on looking for a possible solution using Reflection. Last edited: May 27, 2019
I've searched the forum for this and found nothing, but maybe I can't frame the search term properly! In a couple of my apps, and some from the store as well, when an activity is in landscape mode tapping an EditText control replaces the EditText by some sort of input control that occupies the entire space above the keyboard with a 'Done' button to the right. An Internet search indicates that adding this line to the manifest might stop this and show the EditText as it does when in portrait mode. Code: Copy AddManifestText(<edtSource android:imeOptions="flagNoExtractUi|flagNoFullscreen" />) However this doesn't seem to work. Has anyone else experienced this and found a work around? EDIT: Perhaps this doesn't work because the EditText is added by code rather than xml. I'll carry on looking for a possible solution using Reflection.
agraham Expert Licensed User Longtime User May 27, 2019 #2 This works but seems to have side effect of altering the height of the Activity after rotating to landscape and back to portrait, but I haven't characterised exactly what happens yet. Code: Copy Dim jo As JavaObject jo = edtSource jo.RunMethod("setImeOptions", Array(33554432)) ' IME_FLAG_NO_FULLSCREEN Last edited: May 28, 2019 Upvote 0
This works but seems to have side effect of altering the height of the Activity after rotating to landscape and back to portrait, but I haven't characterised exactly what happens yet. Code: Copy Dim jo As JavaObject jo = edtSource jo.RunMethod("setImeOptions", Array(33554432)) ' IME_FLAG_NO_FULLSCREEN
agraham Expert Licensed User Longtime User May 27, 2019 #3 Ah! The above effect only happens if you rotate the device with the soft keyboard open. I can live that however, it's better than nothing. EDIT: Also this seems to happen only on a multi-line EditText Last edited: May 28, 2019 Upvote 0
Ah! The above effect only happens if you rotate the device with the soft keyboard open. I can live that however, it's better than nothing. EDIT: Also this seems to happen only on a multi-line EditText