I what my actionbar to have a title and homeAsUp but not the logo or icon.
like this:
I tried this:
actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(false);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowHomeEnabled(true);
actionBar.setDisplayShowTitleEnabled(true);
actionBar.setTitle("My Profile");
actionBar.setDisplayUseLogoEnabled(false);
But it gives the application icon between the title and back arrow
Thank You
Try to set this thing
Open your styles.xml file and add below codes in your Actionbar style
p/s: I'm using Actionbar Sherlock and this works just fine
To hide the icon as well try using
setIcon(null)
To hide action bar icon following methods works for me
If you do not want the icon in particular activity.