How to hide the title bar for an Activity in XML with existing custom theme
i remove the action bar by
however, when the app starts, the action bar appears in a very short time before it executes the above statement.
how can I make it totally disappear?
I’ve noticed that if you set the theme in the AndroidManifest, it seems to get rid of that short time where you can see the action bar. So, try adding this to your manifest:
Just add it to your
application tag to apply it app-wide.
You can set it as a no title bar theme in the activity’s xml in the AndroidManifest
<activity android:name=".AnActivity" android:label="@string/a_string" android:theme="@android:style/Theme.NoTitleBar"> </activity>