Showing autocompletetextview results as sentences above the keyboard

I have an autocompletetextview and it works very well, but I would like to show the results as sentences above the keyboard. He does this by default when in landscape mode, but not in portrait. Is there a way to get him to do the same in the portrait?

Portrait Mode Image

Landscape Image

+4
source share
2 answers

Try setting android:dropDownHeight="XXdp" for your AutoCompleteTextView tag in the layout file.

Change You can also try adding the code below to your activity definition for your manifest file:

 android:windowSoftInputMode="stateHidden|adjustResize" 

or

 android:windowSoftInputMode="stateHidden|adjustPan" 
0
source

Try adding android: imeOptions = "flagNoExtractUi" in the AutoCompleteTextView xml file.

0
source

All Articles