0

Possible Duplicate:
How to hide the title bar for an Activity in XML with existing custom theme

when I was running my app on my device or on the emulator, I can see the activity name on the top of the screen, like MainActivity or Hello World or whatever, and I'd like to remove it, but I don't know how. Should I write something in the xml file or something?

Community
  • 1
  • 1
IdoShamriz
  • 63
  • 1
  • 3
  • 7
  • You can find a few different approaches here: [How to hide the title bar for an Activity in XML with existing custom theme](http://stackoverflow.com/questions/2591036/how-to-hide-the-title-bar-for-an-activity-in-xml-with-existing-custom-theme) – Sam Oct 30 '12 at 21:52

1 Answers1

2

Activity titlebar (because that's what you are refering to) can be hidden either from Manifest, by adding proper theme to Activity declaration:

android:theme="@android:style/Theme.NoTitleBar"

or from code, by calling

requestWindowFeature(Window.FEATURE_NO_TITLE);

in Activity's onCreate()

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141