Hi I've got an alertdialog for which I am using a layout inflator
It contains an autocompletetextview I use the same stuff elsehere in the program with no problem but when spec'd inside this alerdialog the autocomplete popup does not show I have used spinners and adapaters in the same way with an alertdialog and view inflator with no problem Is there anything special about auto complete ?? AlertDialog.Builder alert = new AlertDialog.Builder(this); string title = ""; alert.SetTitle(title); alert.SetPositiveButton("OK", logentryClickHandler); alert.SetNegativeButton("Cancel", delegate { alert.Dispose(); }); LayoutInflater ll = LayoutInflater.From(this); View logview = ll.Inflate(Resource.Layout.logentry, null); alert.SetView(logview); EditText depdate = logview.FindViewById<EditText>(Resource.Id.depdate); AutoCompleteTextView depfield = logview.FindViewById<AutoCompleteTextView>(Resource.Id.depfield); depdate.Focusable = true; depfield.Adapter = null; ArrayAdapter<string> airf = new ArrayAdapter<string>(this, Resource.Layout.list_item2, Resources.GetStringArray(Resource.Array.GBairfarr1)); depfield.Adapter = airf; depdate.Click += delegate { ShowDialog('SpecialDatePicker'); }; // this just calls a datepicker with some paprams depdate.RequestFocus(); alert.Show(); Tia John Murray
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid