Android Question Hide Title Bar by code

Marco Maria Vilucchi

Active Member
Licensed User
Longtime User
Hi all,
I need to create an activity without Designer usin a scrollview.
I need to hide TitleBar.
I use this code:

B4X:
 #Region Module Attributes
    #FullScreen: True
    #IncludeTitle: False
#End Region

but I have a black band on the top

upload_2018-4-9_10-31-38.png


Where am I wrong?
Thanks
Marco
 

Star-Dust

Expert
Licensed User
Longtime User
That is not the status bar where is the clock and battery?

If you want to remove that also put FullScreen = True
 
Upvote 0

Marco Maria Vilucchi

Active Member
Licensed User
Longtime User
Yes, this is my Region
#Region Module Attributes
#FullScreen: True
#IncludeTitle: False
#End Region
FullScreen is True, but black bar is already here.
 
Upvote 0

udg

Expert
Licensed User
Longtime User
What happens if you add a panel set to 100%x and 100%y and then add the scrollview to the panel?

BTW, why not using the Designer and Anchors? Any special requirement?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Did you make sure it's not a panel problem?
Image fully covers the entire panel or leaves black borders?

Show the source code
 
Upvote 0

BillMeyer

Well-Known Member
Licensed User
Longtime User
In your Designer have you done this also ?

upload_2018-4-9_11-21-10.png
 
Upvote 0
Top