I have already done something similar in the past that's what I've done:
note: you will get Autocompletion after taping two character
The layout file uses an AutoCompleteView, its basically an EditText with a dropdown list that appears as you type in it. The .xml file in youe example looks like this:
To create the custom view used in the AutoCompleteView you have to declare another .xml file called custcontview.xml and it will looks like this:
now In your Activity:
public class ContactActivity extends Activity {
private ArrayList
Don't forget to add
in your manifest