I am using arrayadapters for listviews on dialog boxes and for autocomplettion
I have a few questions 1) I've found it far faster to have an array built in as a resource than to load data from an xml using Linq The array from resource ('bout 270 items) loads in under a second whereas using xdocument.load takes 6 seconds Presume this is to be expected? Resource array looks like this <string-array name="GBairfarr1"> <item>EGJA Alderney .#49.7067/-2.215</item> <item>EGSL Andrews Field Great Salin .#51.895/0.4494</item> The XML is more like this <dataroot xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" generated="2010-06-05T13:38:35"> <Airports><icao>LATI</icao><lat>N41245300</lat><long>E019431400</long><airfi eld>TIRANA</airfield><place>TIRANA</place><country>ALB</country></Airports> 2) I'd really like to load the additional fields from the xml at the same time as loading the arrayadapter - but this means a time penalty because it seems I am stuck with loading the data from an xdocument then parsing it into an arrayadapter You can see I've tried a dodge by putting the latitude/log info in the resource array string with the intention of getting at it using a substring The drawback of this is that Arrayadapter seems to strip out all the white space so all the #lat/long stuff appears in my dialog or autocomplete box Is there a way of stopping ArrayAdapter from stripping out the whitespace Or is there a way of having a multicolumn arrayadapter with only the first column visible - as with windows forms where a listbox have a text array for display and a hidden value array backing it Any thoughts greatly appreciated John Murray
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid