D driesvp Member Licensed User Longtime User Jan 1, 2015 #1 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. 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")
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. 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")
Erel B4X founder Staff member Licensed User Longtime User Jan 2, 2015 #2 Hard to say without debugging the project itself. Upvote 0
D driesvp Member Licensed User Longtime User Jan 2, 2015 #3 I found the problem! The height was 0! Upvote 0