If I don't want a full screen and no title bar for B4XPages I use this in Main.
B4X:
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: False
#End Region
Then if I later want a screen with a title bar, I make my own panel and add it to root for that page.
This of course also stops being able to add things that are dependent on the title bar (StdActionBar).
If I don't want a full screen and no title bar for B4XPages I use this in Main.
B4X:
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: False
#End Region
Then if I later want a screen with a title bar, I make my own panel and add it to root for that page.
This of course also stops being able to add things that are dependent on the title bar (StdActionBar).
As usual, by trial and error, specially error, I got a debug message complaining about "com.android.internal.app.WindowDecorActionBar"
So I started digging, and found my solution:
My Starting Point is the B4XPages Splash Screen Example, and I was setting these ONLY in the main, I had forgot that this exmaple kind of changes the "usual" way B4XPages start... anyway, my solution also works if FullScreen is set to False and Show Title to True
I liked the solution, but I was curious about the answer to @LucaMs 's question.
The following shows an unusable panel at the bottom of the screen, equal in height of the hidden actionBar.
In other words the height remains unchanged.
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Log(Root.Height) '1360
B4XPages.GetManager.ActionBar.RunMethod("hide",Null)
Root.SetLayoutAnimated(0, 0, 0, Root.Width, Root.Height)
Root.SetColorAndBorder(xui.Color_Blue, 0, 0, 0)
Log(Root.Height) '1360
End Sub