0

I know this has been answered before

But I just want to stop displaying the activity name, but still continue to display the menu items as in the following pic where I don't want to see "Schedule" in activity bar.

enter image description here

Community
  • 1
  • 1
skjagini
  • 3,142
  • 5
  • 34
  • 63

2 Answers2

2

You can add something like getActionBar().setDisplayShowTitleEnabled(false) to the onCreate method of your Activity.

Matthew
  • 6,356
  • 9
  • 47
  • 59
2

You can simply disable the title:

getActionBar().setDisplayShowTitleEnabled(false);

Using ActionbarSherlock:

getSupportActionBar().setDisplayShowTitleEnabled(false);
WarrenFaith
  • 57,492
  • 25
  • 134
  • 150
  • I have MinSDK as 8, and it is not supported to setDisplayShowTitleEnabled. Adding @SupressLint is crashing the app. – skjagini Oct 08 '12 at 01:52
  • 2
    you need to get ActionbarSherlock if you want the ActionBar pre ice cream sandwitch http://actionbarsherlock.com/ – James McCracken Oct 08 '12 at 02:54