Toolbar Android

Asked

Viewed 133 times

1

Guys, I wish I could take off the <- arrow back from the Toolbar. Could someone tell me?

1 answer

3


To remove the arrow from Toolbar, just add this line of code into the onCreate() of his Activity:

getSupportActionBar().setDisplayHomeAsUpEnabled(false);

Add after you set Toolbar as ActionBar.

  • Thank you very much Luiz, it worked!

  • You’re welcome, happy to help. Don’t forget to mark as the right answer! ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.