Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android title bar removal [duplicate]

Tags:

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:

like image 236
teepusink Avatar asked Mar 15 '10 10:03

teepusink


People also ask

How do I remove title bars?

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.

Which of the following method must be called to hide the title bar?

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.


2 Answers

Add the android:theme property to your AndroidManifest.xml:

<application android:theme="@android:style/Theme.NoTitleBar"> 
like image 102
Erich Douglass Avatar answered Sep 19 '22 09:09

Erich Douglass


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" 
like image 27
Chirag Avatar answered Sep 19 '22 09:09

Chirag