Dimitri
Dimitri

Reputation: 1924

Remove back arrow in sherlockactionbar

enter image description here

I need to remove the back arrow and keep only the home icon in action bar sherlock library. I set getSupportActionBar().setDisplayHomeAsUpEnabled() to false but it disabled action bar button.

Upvotes: 0

Views: 148

Answers (1)

lapadets
lapadets

Reputation: 1095

Maybe you forgot to set the home button itself as enabled?

Try this instead:

    // Hide the ActionBar's up button
    getSupportActionBar().setDisplayHomeAsUpEnabled(false);
    getSupportActionBar().setHomeButtonEnabled(true);

Upvotes: 2

Related Questions