原生searchView 自定义样式
https://www.jianshu.com/p/f1fe616d630d
去除搜索框中的图标
<style name="SeachViewActivityTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/netease_red</item>
<item name="colorPrimaryDark">@color/netease_red</item>
<item name="colorAccent">@color/netease_red</item>
<!--toolbar菜单项图标的颜色-->
<item name="android:textColorSecondary">@android:color/white</item>
<!--修改searchView样式-->
<item name="searchViewStyle">@style/SearchViewStyle</item>
</style>
<style name="SearchViewStyle" parent="Widget.AppCompat.SearchView">
<item name="searchIcon">@mipmap/ic_search</item>
<item name="searchHintIcon">@null</item>
</style>
指定SearchView样式中的searchHintIcon为null,即可去除搜索框中的图标,如图: