4

I have a AutocompleteTextView. Suggests List will appear on typing 3 characters.Suggest list size to be be fixed i.e. 8 . Every thing is working fine except the suggest list getting overlapped with soft keyboard. I am attaching the screen shots for the same enter image description here

What should be done, suggestions please. Thanks in advance.

Vaibs
  • 1,128
  • 3
  • 16
  • 36

1 Answers1

0

Try setting android:dropDownHeight

random
  • 10,238
  • 8
  • 57
  • 101
  • is there any way by which i can set suggest list height till keyboard starts.? – Vaibs Mar 25 '13 at 10:11
  • You can programmatically calculate it by knowing screen size, soft keyboard height and textfield current position. Here's how you can find keyboard height http://stackoverflow.com/questions/13534365/getting-the-dimensions-of-the-soft-keyboard – random Mar 25 '13 at 10:22
  • I am able to do this but on click of AutoCompleteTextView, suggest list is getting invisible. – Vaibs Mar 26 '13 at 06:00
  • @Vaibs then you should not use autocomplete but a simple list view http://stackoverflow.com/questions/1737009/how-to-make-a-nice-looking-listview-filter-on-android – DarkLeafyGreen Dec 04 '13 at 10:40