[mono-android] slow loading of FindViewByID

John Murray john at murray.gb.com
Tue Mar 29 06:43:22 EDT 2011


I have an app which has 4 tabs 

Each is an activity - one specific tab has some 8 buttons 2 date pickers a 2
time pickers and 4 autocompleteboxes

Obviously the tab activity/view loads when tab is pressed for first time (
subsequent presses are fast) Other tabs are not so crowded and load when
pressed within a second - The crowded tab takes some 9 seconds 

 I have tried running the view under Eclipse (though not the full app with
tabs) and load times are much faster

The delay is almost certainly around the 

FindViewById<AutoCompleteTextView>(Resource.Id.indestfield);

 

Of which I have 16 on this view 

 

1)  Is there an issue with FindViewByID under Mono 

2)  Is there any trick to speeding things up (is it possible to pre load the
resources in any way - users are quite tolerant of a delay when loading the
app at the beginning and one might emply a splash screen for example) 

3)  My fall back solution is to break the screen up but that rather spoils
the workflow - to save resource I am reusing arrays 

All ideas welcome 

 

John Murray

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110329/4b62579b/attachment.html 


More information about the Monodroid mailing list