Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/230.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在不使用菜单栏的情况下更改android中的搜索视图图标?_Android - Fatal编程技术网

如何在不使用菜单栏的情况下更改android中的搜索视图图标?

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

我想在线性布局中使用搜索视图,而不是在菜单操作中,但我的搜索视图的图标并没有改变。我的XML代码是:

     <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" />

您的问题解决了吗?