How to delete or change the searchview icon inside the SearchView actionBar?
问题 How to remove or change the search view icon inside the edittext? I am using the Appcompat library. I used the below code to modify and remove but it's not working: SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName())); View search_mag_icon = (View)searchView.findViewById(android.support.v7.appcompat.R.id.search_mag_icon); search_mag_icon.setBackgroundResource(R.drawable.ic_stub