How do you remove the back button from a v7 toolbar on Android?
I highlighted the button that I'm trying to remove in the image below:
How do you remove the back button from a v7 toolbar on Android?
I highlighted the button that I'm trying to remove in the image below:
If you are using v7 Toolbar you can remove this button with this code :
if (getSupportActionBar() != null) {
ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(false);
}
you can read android here and here for more information. also this question may help