I wanted to do a search in the application. After clicking on the "Loupe" button (which is a Menu item), the Toolbar should change.
I onOptionsItemSelected in the onOptionsItemSelected method onOptionsItemSelected But after calling the setSupportActionBar (searchToolbar) method, nothing changes. Tell me how to do this?

SearchViewwidget, everything has already been done. - pavlofff