Remove Icon but have HomeAsUp in ActionBar

android, android-actionbar

Solution

actionBar = getSupportActionBar();    
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowHomeEnabled(false);
actionBar.setDisplayShowTitleEnabled(true);
actionBar.setTitle("My Profile");
actionBar.setDisplayUseLogoEnabled(false);

Problem

I what my actionbar to have a title and homeAsUp but not the logo or icon. like this: 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

Original source