How to disable AutoCompleteTextView's drop-down from showing up?

前端 未结 17 2012
终归单人心
终归单人心 2020-12-05 15:30

I use the following code to set text to an AutoCompleteTextView field. But I noticed that when I set certain text (not all text, but some) to it, it will automatically pop u

17条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 15:52

    The intent here is to hide the drop-down with AutoCompleteTextView. Set the dropDownHeight to zero in the layout file.

    
    
    

    In my case, I have the GridView and there is address bar above that view. I want to filter items in GridView based upon user input in AutoCompleteTextView without requiring TextView to show me the dropdown.

提交回复
热议问题