Robert Valentino Well-Known Member Licensed User Longtime User Jun 17, 2020 #1 Before converting one of my Apps to B4XPages I had all the screens in the main and different classes to show which screen was displaying. Because ALL the screens were overlaying the main screen I was showing a status bar at the bottom by having the sub screens just clip their height and let the main page status show thru Is there a way to have the same effect without having to have each Page handle the status bar? The Pages are still clipping themselves but now there is a white background hiding the status bar We can have a menu on top can there be a common status area at the bottom? I am sure I can add the fields to each screen and display them - but was looking for a simpler way BobVal
Before converting one of my Apps to B4XPages I had all the screens in the main and different classes to show which screen was displaying. Because ALL the screens were overlaying the main screen I was showing a status bar at the bottom by having the sub screens just clip their height and let the main page status show thru Is there a way to have the same effect without having to have each Page handle the status bar? The Pages are still clipping themselves but now there is a white background hiding the status bar We can have a menu on top can there be a common status area at the bottom? I am sure I can add the fields to each screen and display them - but was looking for a simpler way BobVal
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2020 #2 Everything is simpler with B4XPages. There are all kinds of ways to do it. One very simple way is to add it in the main module: Code: Copy Sub Globals Private pnlBottom As Panel End Sub Sub Activity_Create(FirstTime As Boolean) Dim pm As B4XPagesManager pm.Initialize(Activity) Activity.LoadLayout("BottomBar") pnlBottom.Elevation = 10dip '<--- make it appear over other views End Sub Upvote 0
Everything is simpler with B4XPages. There are all kinds of ways to do it. One very simple way is to add it in the main module: Code: Copy Sub Globals Private pnlBottom As Panel End Sub Sub Activity_Create(FirstTime As Boolean) Dim pm As B4XPagesManager pm.Initialize(Activity) Activity.LoadLayout("BottomBar") pnlBottom.Elevation = 10dip '<--- make it appear over other views End Sub