'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("frm_main")
Log(Root.Height)
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Sleep(0)
Root.LoadLayout("frm_main")
Sleep(0)
End Sub
after that, i can load my layout into the ASViewPager without the page being too big and i can't see the bottom item.
It has something to do with the PageResize in B4I.
Doesn't look like the best solution. It will be better to handle B4XPage_Resize, and then add whatever you need. Make sure to only add it once as the resize event can be raised multiple times.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.