Scrolling drop-down-menu over the keyboard in autocompletetextview

rmarau picture rmarau · Feb 7, 2013 · Viewed 12.2k times · Source

I have an Autocompletetextview dropping down the suggestions list, up to the border of the soft-keyboard.

Then, when scrolling over the suggestions list: - (in a gingerbread phone) the drop-down-menu automatically increases height covering the keyboard, which is nice since it shows more items. - (in an ICS emulator) the drop-down-menu does not increase height over the keyboard.

Is this related to some system property? Is there a way to force the first behavior also in ICS?

Answer

Deepak Goel picture Deepak Goel · Feb 23, 2013

Just add android:dropDownHeight="100dp" to the AutoCompleteTextView tag in your layout file, it will work.