Remove App Icon From Navigation Drawer Actionbar Does Not Work
I am working on an App which has design requirement to be built as it should only have the Title on the ActionBar and not the App Icon. i tried various solutions found from StackOv
Solution 1:
please try adding this..
getActionBar().setDisplayHomeAsUpEnabled(true);
getActionBar().setHomeButtonEnabled(true);
and in your theme add
<stylename="CustomActionBarTheme"parent="@android:style/Theme.Holo.Light.DarkActionBar"><itemname="android:actionBarStyle">@style/ActionBar</item
</style><!-- ActionBar styles --><stylename="ActionBar"parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"><itemname="android:icon">@android:color/transparent</item></style>
Solution 2:
Its quite tricky anyhow, but i solved it,and it works like a charm in all devices.
I made a 2x2 px transparant icon and added it as
ActionBaractionBar= getActionBar();
actionBar.setIcon(R.drawable.actionbar_null_icon);
and removed the code
getActionBar().setDisplayUseLogoEnabled(false);
getActionBar().setDisplayShowHomeEnabled(false);
thanks to nDroidDev for suport
Post a Comment for "Remove App Icon From Navigation Drawer Actionbar Does Not Work"