24

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:

Community
  • 1
  • 1
teepusink
  • 27,444
  • 37
  • 107
  • 147

2 Answers2

75

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

<application android:theme="@android:style/Theme.NoTitleBar">
Jeremy
  • 1
  • 85
  • 340
  • 366
Erich Douglass
  • 51,744
  • 11
  • 75
  • 60
  • 2
    Refer to this for more information http://stackoverflow.com/q/2591036/346309 – JPM Dec 16 '11 at 16:37
  • I used this, but afterword my application content disappeared, even thought the GUI is there. Note that I am filling my GUI using DB-manager java class, i.e. reading the content from a DB. what should I do ? – McLan May 15 '14 at 21:30
  • HI its removing icon only...its not removing title bar... Min SDK version for my app is 7. – Dila Gurung Sep 23 '15 at 17:43
19

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"
Ahmad
  • 69,608
  • 17
  • 111
  • 137
Chirag
  • 2,321
  • 24
  • 36