I'm looking through the Holo.Light
theme, and I can't seem to find the magic style to override to get rid of the title text that briefly shows up when my app first launches.
How can I do that?
I'm looking through the Holo.Light
theme, and I can't seem to find the magic style to override to get rid of the title text that briefly shows up when my app first launches.
How can I do that?
Got it. You have to override
and then in your custom style you have to override
Here's a sample.
In my themes.xml:
And in my styles.xml:
I'm not sure why setting the textSize to zero didn't do the trick (it shrunk the text, but didn't make it go away), but setting the textColor to transparent works.
you have two choice:
first:
If usign
getActionBar()
produced null pointer exception, you should usegetSupportActionBar()
Second
or
Write this statement under
if extending AppCompactActivity use
getSupportActionbar()
if extending Activity usegetActionBar()
else it may giveusing
android:label=""
inAndroidManifest.xml
for activity also works but your app won't appear inRecently used apps
as a workaround just add this line incase you have custom action/toolbars
in your Activity
In your manifest.xml page you can give address to your activity label. the address is somewhere in your values/strings.xml . then you can change the value of the tag in xml file to null.
While all of these are acceptable, if your activity only contains a main activity, you can edit
res\values\styles.xml
like so:I've updated
parent
and added the .NoActionBar property to the Light theme from Android StudiosCreate Blank Application
Wizard.