remove icon logo from action bar on android

remove icon logo from action bar on android  using -'android,xml,android-layout,android-actionbar,titlebar'

I've been trying to find some way of removing the icon/logo from the action bar but the only thing I've found after an hour of searching SO, Android's documentation and Google is how to remove the title bar in whole. That is not what I want. Only want to remove the icon/logo from the title bar.

Any one know how to accomplish this? Preferably I'd like to do this in XML.

asked Oct 19, 2015 by 20shahi
0 votes

1 Answer

0 votes

If you've defined android:logo="..." in the tag of your AndroidManifest.xml, then you need to use this stuff to hide the icon:

pre-v11 theme


v11 and up theme


The use of these two styles has properly hidden the action bar icon on a 2.3 and a 4.4 device for me (this app uses AppCompat).

answered Oct 19, 2015 by patelnikul321