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 sho
Add setDisplayHomeAsUpEnabled(true)
Toolbar toolbar = findViewById(R.id.toolbar); ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); }
Handle the back button
public boolean onSupportNavigateUp() { onBackPressed(); return true; }