That just (a minute ago) solved a similar problem.
What we need:
1) When you start the activation show a hamburger.
2) When replacing the fragment, change the hamburger to the arrow.
3) When you click on the arrow to return the previous fragment
4) Again show the hamburger.
We do:
1) If the ND is done correctly, then the hamburger is already shown at launch.
2) You can show the arrow like this:
mDrawerToggle.setDrawerIndicatorEnabled(false);
3, 4) It will respond to clicking in onOptionsItemSelected () by id R.id.home
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: //При нажатии вызывается обработчик кнопки назад //Он по умолчанию должен будет вернуться по списку фрагментов назад onBackPressed(); //Надо вернуть иконку гамбургера mDrawerToggle.setDrawerIndicatorEnabled(true); return true; } }
PS Here we solved a similar problem in the Anglo-Saxon.