幸亏
this blogpost
,我设法构建了我的解决方案:
public boolean onCreateOptionsMenu(Menu menu) {
// the search view is in the mymenu.xml
inflater.inflate(R.menu.mymenu, menu);
// now that it is inflated we can get the item
MenuItem item = menu.findItem(R.id.action_find);
// and through it the actionview
SearchView searchView = (SearchView) MenuItemCompat.getActionView(item);
Drawable searchIcon = getActivity().getResources().getDrawable(R.drawable.ic_action_search); // the new icon
// and now we search within the view for the "bad" image
ImageView collapsedSearchIcon = (ImageView) searchView.findViewById(android.support.v7.appcompat.R.id.search_button);
// and finally replace it
collapsedSearchIcon.setImageDrawable(searchIcon);
}