getactionview deprecated code example
Example: menuitemcompat getactionview is deprecated in android
MenuItem search = menu.findItem(R.id.search);
SearchView searchView = (SearchView) getActionView(search);
MenuItem search = menu.findItem(R.id.search);
SearchView searchView = (SearchView) getActionView(search);