Hello,
When calling this code, the desired layout isn't loaded. I don't receive an error. Any idea what's the reason?
If I load the layout straight away: it works.
When calling this code, the desired layout isn't loaded. I don't receive an error. Any idea what's the reason?
If I load the layout straight away: it works.
B4X:
vp.Initialize("vp", 2, 100%x, Main.SchermHoogte)
Activity.AddView(vp.AsView, 0, 0, 100%x, Main.SchermHoogte)
'load the pages layouts
vp.Panels(0).LoadLayout("Inventaris")
vp.Panels(1).LoadLayout("1")
bar.Initialize("bar")
bar.Icon = LoadBitmap(File.DirAssets, "ic_action_user.png")
bar.NavigationMode = bar.NAVIGATION_MODE_TABS
bar.AddTab("Scannen")
bar.AddTab("Overzicht")