user3144836
user3144836

Reputation: 4148

ActionBar setDisplayHomeAsUpEnabled(true) vs setDisplayShowHomeEnabled(true). What's the difference?

The title is pretty much self explanatory. What are the exact differences? I'll post sample code below.

actionbar = getSupportActionBar();
actionbar.setDisplayHomeAsUpEnabled(true);
actionbar.setDisplayShowHomeEnabled(true);

Upvotes: 21

Views: 16457

Answers (1)

matiash
matiash

Reputation: 55350

The documentation is pretty much self explanatory.

ActionBar.setDisplayShowHomeEnabled() specifies whether or not the Home button is shown.

ActionBar.setDisplayHomeAsUpEnabled() specifies whether or not the Home button has the arrow used for Up Navigation next to it.

Upvotes: 22

Related Questions