If pg.IsInitialized = False Then
pg.Initialize("pgregcli" )
pg.Title = "Title"
SvPanel.Initialize("", 100%x,100%y)
pg.RootPanel.AddView(SvPanel,0,0,100%x,100%y)
End If
NavControl.ShowPage(pg)
SvPanel.Panel.LoadLayout("Layout")
SvPanel.Panel.Color =Colors.White
This simple code, do not show Scrollview 100%x and 100%y in page, in other pages found OK, some solutions ?
Thanks, The solution for other people. I using three pages metode for correct load page using. next code example
B4X:
Sub Process_Globals
Private pg As Page
End Sub
Sub Show
Try
If pg.IsInitialized = False Then
pg.Initialize("pg" )
pg.Title = "Tmovemos Colombia"
End If
pg.RootPanel.Color=Colors.White
Main.NavControl.ShowPage(pg)
Catch
Msgbox(LastException,"Error")
End Try
End Sub
Private Sub pg_Resize(Width As Int, Height As Int)
setup_page(Width,Height)
End Sub
Sub setup_page (w As Int , h As Int)
SvPanel.Initialize("",w,h)
pg.RootPanel.AddView(SvPanel,0,0,w,h)
SvPanel.Panel.LoadLayout("layout")
End Sub
I already told you the correct solution 5 times. Use the designer and use anchors. Everything will just work. Try it. If it doesn't work for you then upload the project.
If this is a new project then you should use B4XPages. Will be simpler.