“Back button” using getSupportActionbar and appcompat v7 toolbar
I'm using the new toolbar from the Appcompat V7 library and I'm making an application with navigation drawer and with fragments. In some fragments I don't want to show the hamburger icon but the arrow instead... That is fine I did this in this way: mDrawerToggle.setDrawerIndicatorEnabled(false); mDrawerToggle.syncState(); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setHomeAsUpIndicator(R.drawable.abc_ic_ab_back_mtrl_am_alpha); My question is that: How or