Title not hiding properly

barx

Well-Known Member
Licensed User
Longtime User
I have noticed this on every app i've made so far. Even though I set the attribute

B4X:
   #IncludeTitle: False

When the app first starts I see the title for a second or so, then the desired appearance shows.

Some screens to show this effect

app first loads

screen1.png

a second or so later

screen2.png

Is it possible to avoid this and start with the desired view instantly. Many apps that i have installed from market don't have this issue?

Thanks
 

barx

Well-Known Member
Licensed User
Longtime User
Now then stranger! lol

How's things?

So it's designer related and no way round it then. That sux a little. I think it tends to look a little less professional.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
OK, figured a workaround out.

Open Manifest editor and add the following

B4X:
SetActivityAttribute(Main, android:theme, @android:style/Theme.Black.NoTitleBar)
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
I have no idea margret though i cannot see why it wouldn't work <v3.

Should be getting my hands on a 2.3.6 device today so will test it out a little later to see how it goes.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
Does this work from Android 2 up, or does this only work with Android 3 or greater?

Just tried it on a galaxt ace running 2.3.6 and it seems to do the trick!
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
Barx, the line you indicated will work, however, if you target SDK > 11 you won't see the Holo theme.

I hadn't realized that I had referenced the Holo theme. Is style/Theme.Black just a standard theme. Seems to work on < v3.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
I must offer an apology to NJDude here as I have just realized what he was talking about. If you wish to use the Holo theme then use this line instead

B4X:
SetActivityAttribute(Main, android:theme, @android:style/Theme.Holo.Light.NoActionBar)

This still may need some tweaking as not tried it on Gingerbread yet. Maybe some version folders needed. Will report back after some more tests.
 
Upvote 0
Top