Re: [mono-android] Sorting ArrayAdapter

2012-03-23 Thread dgoughnour
Sorry, I should have replied earlier. My problem was that I was filling the lists with objects directly from a web service (object were generated as part of the web service reference). These objects did not extend Java.Lang.Object and hence I could not use IComparator. I simply wrapped my objects i

Re: [mono-android] Sorting ArrayAdapter

2012-03-20 Thread Jonathan Pryor
On Mar 20, 2012, at 10:50 AM, dgoughnour wrote: > Is there an example of how to use ArrayAdapter.Sort(). No. Is there something wrong with creating and using a new class that implements IComparator? class MyComparer : Java.Lang.Object, Java.Util.IComparator { public int C

[mono-android] Sorting ArrayAdapter

2012-03-20 Thread dgoughnour
Is there an example of how to use ArrayAdapter.Sort(). I want to sort the items in my list. The contents of the list are dynamic which makes sorting the data before adding it to the adapter less desirable. Thanks Dave Goughnour -- View this message in context: http://mono-for-android.1047100.n5.