
How to remove or change the search view icon inside the edittext? I am using the Appcompat libra
I used the menu item with the property app:actionViewClass="android.support.v7.widget.SearchView"
On the activity I set:
searchView = (SearchView) searchMenuItem.getActionView();
searchView.setIconifiedByDefault(false);
To remove the icon I did:
ImageView searchIcon = (ImageView)searchView.findViewById(android.support.v7.appcompat.R.id.search_mag_icon);
searchIcon.setImageDrawable(null);