-3

I would like to hide the logo from the action bar using the code. i want the other things to remain on actionbar. Can anyone let me know how to do it ?

Thanks.

Jay Dhamsaniya
  • 323
  • 2
  • 4
  • 15

1 Answers1

1

First way:

getActionBar().setDisplayShowHomeEnabled(false);

Second way:

getActionBar().setIcon(new ColorDrawable(getResources().getColor(android.R.color.transparent)));    
hvaughan3
  • 10,955
  • 5
  • 56
  • 76
Naveen Tamrakar
  • 3,349
  • 1
  • 19
  • 28