[mono-android] AutoCompleteTextView (pt 3)

2013-05-29 Thread gspro
For those that have seen and commented on this in the past, I'm still trying to figure this out. I've trimmed the code from the last posting and am getting closer (I think). This is the error, I'll post the code below the stack trace: / 05-29 19:47:00.731: E/AndroidRuntime(20277): FATAL EXCEPTION

Re: [mono-android] AutoCompleteTextView (con't)

2013-05-20 Thread gspro
Spencer wrote > Try calling ca.NotifyDataSetChanged() after you've reloaded your adapter > from the service. What should be in that method? I put this method in the adapter, but not sure how to implement. It gets called, but the list still doesn't get displayed. public override void NotifyDataSe

Re: [mono-android] AutoCompleteTextView (con't)

2013-05-19 Thread Spencer
Try calling ca.NotifyDataSetChanged() after you've reloaded your adapter from the service. The call to get the company contacts should run in a new thread to prevent UI thread from blocking. But the call to NotifyDataSetChanged needs to run on the UI thread, so you should use RunOnUiThread to mak

[mono-android] AutoCompleteTextView (con't)

2013-05-18 Thread gspro
I posted before regarding this question, but am still struggling. I created a custom adapter to bind the autocomplete to an array list dynamically - a web service is called after 2 characters are typed. The code is a combination of the xamarin content control samples, and another sample on the web

Re: [mono-android] AutoCompleteTextView

2013-05-01 Thread Spencer
I guess you could also try using the Threshold property to set the number of characters that need to be input before the auto complete kicks in, in conjunction with a key listener to determine when the threshold is met, so you can call your webservice in a new thread. You might run into threadin

Re: [mono-android] AutoCompleteTextView

2013-05-01 Thread Stuart Lodge
I have done this with the Google Books api I made a sample for Mvx - it's not currently live on v3 but you can see it on v2 at https://github.com/slodge/MvvmCross/tree/vnext/Sample%20-%20SimpleDialogBinding/DroidAutoComplete Here's what i wrote at the time - http://slodge.blogspot.co.uk/2012/05/m

Re: [mono-android] AutoCompleteTextView

2013-05-01 Thread gspro
Thanks, I'll try that. It looks like I'd need to retrieve the entire list ahead of time, and auto complete would filter based on that? Is there a way that I could call the web service when the threshold number of characters is met? I'd rather pull down a subset of data from the service than the ent

Re: [mono-android] AutoCompleteTextView

2013-04-30 Thread Spencer
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 myAdapter = new ArrayAdapter(context, Android.Resource.Layout.SimpleSpinnerItem, items.ToArray()); myAdapter.SetDropDownViewResource(Androi

[mono-android] AutoCompleteTextView

2013-04-30 Thread gspro
I've been searching for help, but most posts are using an array adapter. I don't 'think' that is what I can use. I have a requirement to use an autocomplete text view to provide suggestions for an email address. When the user selects an address from the list, I'm to populate the associated contact

Re: [mono-android] AutoCompleteTextView

2012-04-21 Thread Craig Dunn
} >protected override void PublishResults > (Java.Lang.ICharSequence constraint, Filter.FilterResults results) >{ >a.NotifyDataSetChanged(); > } >} >

Re: [mono-android] AutoCompleteTextView

2012-04-21 Thread John Murray
onodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pobst Sent: 05 January 2012 21:46 To: Discussions related to Mono for Android Subject: Re: [mono-android] AutoCompleteTextView Not sure exactly what you are trying to do, but we have this code here:

Re: [mono-android] AutoCompleteTextView

2012-01-05 Thread Tom Opgenorth
Mine's a bit more contrived (looking up strings in an SQLite table via a CursorAdapter). Looking at the sample here, I'd wager the same principles will apply in M4A huh? On Thu, Jan 5, 2012 at 14:45, Jonathan Pobst wrote: > Not sure exactly what you are trying to do, but we have this code here:

Re: [mono-android] AutoCompleteTextView

2012-01-05 Thread Jonathan Pobst
Not sure exactly what you are trying to do, but we have this code here: https://github.com/xamarin/monodroid-samples/blob/master/ApiDemo/Tutorials/AutoCompleteTutorial.cs Jonathan On 1/5/2012 3:32 PM, Tom Opgenorth wrote: > I've use this before (in Java). Has anybody tried to out with M4A and >

[mono-android] AutoCompleteTextView

2012-01-05 Thread Tom Opgenorth
I've use this before (in Java). Has anybody tried to out with M4A and would be willing share a sample/snippet? -- http://www.opgenorth.net ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/