Rectangle 27 1

android AutocompleteTextView suggestion list goes up?


Just adding the android:dropDownHeight="100dp" to the AutoCompleteTextView tag in your layout file will be the best solution I guess! it will simply controls the hight of drop down hight and allow us to scroll!

Note
Rectangle 27 1

android AutocompleteTextView suggestion list goes up?


Did you try putting it in a scroll view and moving the AutoCompleteTextview near the top ?

I already set this 300dp for dropDownHeight and it'll goes always upward and also display list when it focus by this focuschangelistener. The problem is for small device.

This would display a list of options when the user focuses on the AutoCompleteTextView

To display the list of options on focus do something like this

Why the down vote ? what was the issue ?

You can either adjust the layout so that there is more space below the AutoCompleteTextView

actually I have put this in tab so on top of tab are available and that much space is there so I have test this to place this control with some top margin

this is not working any other idea?

you can change the dropdown height android:dropDownHeight and set some high value, this would work when its inside a scrollView and the AutoCompleteTextView is near the top.

Note
Rectangle 27 1

android AutocompleteTextView suggestion list goes up?


I've had this problem before. For me, there was more screen space above the AutocompleteTextView than below (testing on a "normal" device), so the list opened upwards. I adjusted my layout slightly so that there was more space below the AutocompleteTextView and it started opening downwards. That's what fixed it for me.

Note