SubscribeSubscribe with Androidlift to get new post on mail.

Autocompletetextview Android Suggetions From String Array Example

AutoCompleteTextView Android

AutoCompleteTextView android editable text view that shows completion suggestions automatically while the user is typing. The list of suggestions is displayed in a drop down menu from which the user can choose an item to replace the content of the edit box with.

The drop down can be dismissed at any time by pressing the back key or, if no item is selected in the drop down, by pressing the enter/dpad center key.

The list of suggestions is obtained from a data adapter and appears only after a given number of characters defined by the threshold.

The following code snippets shows how to create a text view which suggests various countries names while the user is typing:

AutoCompleteTextView android Output :

AutoCompleteTextView android
How to show Array in AutocompleteTextView

activity_main.xml

MainActivity.java

(16)