I repeat my question also here.
In my code I have only one activity (main) and often I call a sub to change panel as in code below.
Everything is ok but sometimes, randomly, one of the panel that I call not show his background image (show a black background).
I defined background image (jpg <100K) only in designer (image view).
As Erel already told me I added a line with panel1.removeview but nothing change.
My application is finish and perfectly functional except for this "bug".
I hope in your help.
CODE
In my code I have only one activity (main) and often I call a sub to change panel as in code below.
Everything is ok but sometimes, randomly, one of the panel that I call not show his background image (show a black background).
I defined background image (jpg <100K) only in designer (image view).
As Erel already told me I added a line with panel1.removeview but nothing change.
My application is finish and perfectly functional except for this "bug".
I hope in your help.
CODE
Sub LoadLayoutToPanel (Layout As String)
If Panel1.IsInitialized Then
Activity.RemoveViewAt(0)
End If
Panel1.Initialize("")
Panel1.removeview
Panel1.LoadLayout(Layout)
Activity.AddView(Panel1, 0, 0, 100%x, 100%y)
End Sub