Possible Duplicate:
What do I have to add to a layout to hide the titlebar?
How do I remove the title below the battery, time bar from showing up?
Not sure the terminology for that bar, but on this picture it is the "Nested XML Layout" bar:
So basically we just need to change DarkActionBar to NoActionBar. NoActionBar theme prevents the app from using the native ActionBar class to provide the app bar. Thus it removes the title of every activity.
Hide Title Bar using Java code To do that you need to call the requestWindowFeature(Window. FEATURE_NO_TITLE) method of an Activity. But you need to call this before the setContentView( ) method of an Activity.
Add the android:theme
property to your AndroidManifest.xml:
<application android:theme="@android:style/Theme.NoTitleBar">
Use this on in Java file before setContentView()
requestWindowFeature(Window.FEATURE_NO_TITLE);
Use this AndroidManifest file
android:theme="@android:style/Theme.NoTitleBar" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With