예제 #1
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			SetContentView (Resource.Layout.autocomplete_4);

			ICursor cursor = ContentResolver.Query (ContactsContract.Contacts.ContentUri, CONTACT_PROJECTION, null, null, null);

			ContactListAdapter adapter = new ContactListAdapter (this, cursor);

			AutoCompleteTextView textView = FindViewById <AutoCompleteTextView> (Resource.Id.edit);
			textView.Adapter = adapter;
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.autocomplete_5);

            ICursor cursor  = ContentResolver.Query(ContactsContract.Contacts.ContentUri, AutoComplete4.CONTACT_PROJECTION, null, null, null);
            var     adapter = new ContactListAdapter(this, cursor);

            var textView = FindViewById <AutoCompleteTextView> (Resource.Id.edit);

            textView.Adapter = adapter;
        }