📜  如何删除 ActionBarDrawerToggle 但保留后退按钮 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:24.559000             🧑  作者: Mango

代码示例1
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)