Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Icon but have HomeAsUp in ActionBar

I what my actionbar to have a title and homeAsUp but not the logo or icon.

like this:

enter image description here

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

like image 652
Archie.bpgc Avatar asked Dec 04 '12 14:12

Archie.bpgc


1 Answers

actionBar = getSupportActionBar();     actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayShowHomeEnabled(false); actionBar.setDisplayShowTitleEnabled(true); actionBar.setTitle("My Profile"); actionBar.setDisplayUseLogoEnabled(false); 
like image 162
Aleksey Shulga Avatar answered Oct 01 '22 14:10

Aleksey Shulga