Android Question [SOLVED] [B4XPages] We still unable to at least hide the Page Title Panel?

Cableguy

Expert
Licensed User
Longtime User
Hi Guys and Gals...

Well, I think the question's Title says it all....

This could be done inside the lib (small update) were if the title tex was empty, the just hide the panel altogether!

1649783249008.png


Thanks in advance
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
Set the app to full screen or set the title to empty string.
I tried that, but the Panel still shows, with the Elevation visible

1649783266132.png
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Even if you remove the elevation, that space would remain unusable, unless you set the app (the Activity) to full screen - no title.
Exactly my point... I guess my post was a mix of a question and a wish...
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Here (Italy) we say:

"You can't have your (wine) barrel full and your wife drunk"

(I don't know who wants their wife drunk but that is ?)
Quite right, but I can order another barrel before my wife finishes drinking the one we have!
 
Upvote 0

William Lancee

Well-Known Member
Licensed User
Longtime User
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).
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
In
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).
In my case, setting fullscreen = True and IncludeTitle = Flase has no effect
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
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:

B4X:
B4XPages.GetManager.ActionBar.RunMethod("hide",Null)
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
In

In my case, setting fullscreen = True and IncludeTitle = Flase has no effect
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
 
Upvote 0

William Lancee

Well-Known Member
Licensed User
Longtime User
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
 
Upvote 0
Top