Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Showing autocompletetextview results as suggestions above keyboard

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

Picture of portrait mode

Picture of landscape mode

like image 786
TPeer Avatar asked Nov 12 '22 06:11

TPeer


1 Answers

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

Edit : You can also try adding code below to your activity definition of your Manifest File:

android:windowSoftInputMode="stateHidden|adjustResize"

or

android:windowSoftInputMode="stateHidden|adjustPan"
like image 92
Arash GM Avatar answered Nov 14 '22 23:11

Arash GM