Layout Loading Delays

aidenfry

New Member
Licensed User
Longtime User
Hi guys,

Just getting into this at the moment, and i'm coming across a sticking point.

On first launch I want to set my app to no title bar and set the layout in the Activity_Create method. It is a really simple activity showing a spinner and a text view, in code I also set the spinners background using a Bitmapdrawable as shown here.


Sub Activity_Create(FirstTime As Boolean)
'Get the bitmap ASAP
Dim bmp As BitmapDrawable
bmp.Initialize(LoadBitmap(File.DirAssets, "Gem_Button.png"))

'Load the layout
Activity.LoadLayout("Main")

'Set background colour
spnTitleBar.Background = bmp


End Sub


However when i run the app, or deploy in in run time, on loading the app it shows a blank screen with a standard Title Bar for about 1/6 of a second, then it loads my layout and very quickly - but noticeably - takes a little more time to change the spinner background.

Is there a way to either - 1) speed up the code above or 2) Not allow the view to be shown until this has finished.

I am slightly disappointing by this as i am coming from an Eclipse Android-SDK environment where the views are loaded instantly.

Thanks for any help, I'm liking the simplicity so far, just hope i can do all that i want to do!
 

stevel05

Expert
Licensed User
Longtime User
I can't check it now as I am not at my computer, but I'm sure I've seen another thread that had a solution for this. Try a few searches.
 
Upvote 0
Top