Answers for "how to remove ActionBarDrawerToggle but keep back button"

0

how to remove ActionBarDrawerToggle but keep back button

When creating your ActionBarDrawerToggle, simply remove the toolbar argument. This will allow the back button to call onOptionsItemSelected() like normal instead of the hamburger menu.

ActionBarDrawerToggle(this, binding.drawer, R.string.open, R.string.close)
Posted by: Guest on July-20-2021

Code answers related to "how to remove ActionBarDrawerToggle but keep back button"

Browse Popular Code Answers by Language