Remove application icon and title from Honeycomb action bar

prashant picture prashant · Apr 19, 2011 · Viewed 61k times · Source

How can I remove the application icon & title which comes by default in an action bar?

There is a similar question here: Can i hide the App Icon from the Action Bar in Honeycomb?, but it doesn't talk about how to do it?

Answer

CommonsWare picture CommonsWare · Apr 19, 2011

Call setDisplayShowHomeEnabled() and setDisplayShowTitleEnabled() on ActionBar, which you get via a call to getActionBar().