I use AutoCompleteTextViewin my application with a custom adapter, and it works fine in portrait mode. In horizontal mode, however, the software keyboard occupies most of the screen, and the text view uses overlay buttons instead of the views provided by the adapter.
I could not find clear documentation on how this works behind the scenes. It seems that in landscape mode it AutoCompleteTextViewbypasses the getView()adapter method , does some dirty work with the help, getItem()and processes the elements itself using raw strings.
To make matters worse, there seems to AutoCompleteTextViewbe a recommendation that introduces TWO lists of auto-complete tooltips: standard drop-down and overlay buttons at the same time (this is clearly visible if we set imeOptions to flagNoExtractUito prevent expansion AutoCompleteTextViewin the landscape).
I would like to provide my own views in BOTH situations, but I managed to do this only for the drop-down menu. Any changes to provide custom views for an overlaid list?
Sorry, but I can’t post images due to low rating. I can send them if someone needs them.
source
share