Issue
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:
Solution
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
Answered By - Mohammad Fatemi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.