如何在不使用菜单栏的情况下更改android中的搜索视图图标?
我想在线性布局中使用搜索视图,而不是在菜单操作中,但我的搜索视图的图标并没有改变。我的XML代码是:如何在不使用菜单栏的情况下更改android中的搜索视图图标?,android,Android,我想在线性布局中使用搜索视图,而不是在菜单操作中,但我的搜索视图的图标并没有改变。我的XML代码是: <SearchView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/searchView" android:icon="@mipmap/audio" android:
<SearchView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/searchView"
android:icon="@mipmap/audio"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:commitIcon="@color/accent_material_light" />
您的问题解决了吗?