Remove back button from SearchView in toolbar AppCompat <p><img src="https://i.stack.imgur.com/v5NfH.png" alt="enter image description here"></p> <p>How can I remove the back button icon when search view shows up in Toolbar (AppCompat)?</p> <pre><code>toolbar = (Toolbar) findViewById(R.id.tool_bar); // Set an OnMenuItemClickListener to handle menu item clicks toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() { @Override public boolean onMenuItemClick(MenuItem item) { // Handle the menu item return true; } }); // Inflate a menu to be displayed in the toolbar toolbar.inflateMenu(R.menu.menu_main); toolbar.setTitle(""); setSupportActionBar(toolbar); actionBar = getSupportActionBar(); // this works for normal back button but not for one appears on tapping SearchView actionBar.setDisplayHomeAsUpEnabled(false); </code></pre>