I want to remove app icon in action bar.
this is my code
ActionBar actionBar = getActionBar();
actionBar.setDisplayUseLogoEnabled(false);
but it not remove.
I want to remove app icon in action bar.
this is my code
ActionBar actionBar = getActionBar();
actionBar.setDisplayUseLogoEnabled(false);
but it not remove.
To remove the App icon from actionbar in only an activity, try this
getActionBar().setIcon(new ColorDrawable(getResources().getColor(android.R.color.transparent)));
If You want to hide app icon in Full Application Use
actionBar = getSupportActionBar();
actionBar.setDisplayShowHomeEnabled(false);
and
actionBar.setDisplayShowTitleEnabled(false);