Search code examples
androidandroid-activityandroid-actionbarandroid-titlebar

How to hide application title in Android?


I want to create an application with just the app icon on the title bar and no app name. How can I do it?

I have tried to use:

requestWindowFeature(Window.FEATURE_NO_TITLE);

but it just removes the title bar and not just the application name.


Solution

  • Call setDisplayShowTitleEnabled(false) on the ActionBar instance you get back by calling getActionBar() on your activity.