An ArrayAdapter is the easiest way to go unless you want to use a custom
layout.  All you need to do is convert your list into an array.

ArrayAdapter<EmailContactItem> myAdapter = 
        new ArrayAdapter<EmailContactItem>(context,
Android.Resource.Layout.SimpleSpinnerItem, items.ToArray());
myAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
myAutoComplete.Adapter = myAdapter;


Then use the EmailContactItem ToString() method to display what ever you
want to display in the auto complete (presumably the email address field).



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/AutoCompleteTextView-tp5713249p5713250.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to