I know it's a common question but I tried a lot of solutions of StackOverflow and any solution works.
I want to show the home button in the toolbar but it shows the back button or nothing.
I tried different codes like:
getSupportActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setDefaultDisplayHomeAsUpEnabled(true);
Now I have the code:
setSupportActionBar(toolbar);
getSupportActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
and it shows the back button.
Any solution to show the Home button? Thanks for the help.
I'm sorry if my English is too bad.