Android的搜索查看图标 [英] Android SearchView Icon
本文介绍了Android的搜索查看图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要禁用搜索视图组件中显示的马格图标。不知道如何引用它,并删除它或将它与其他可绘制更换?
I want to disable the Mag icon displayed inside the search view component. Any idea how to reference it and remove it or replace it with another drawable ?
推荐答案
在你的主题:
<style name="Theme" parent="Your parent theme">
<item name="android:searchViewSearchIcon">@android:drawable/ic_search</item>
</style>
编辑:
searchViewSearchIcon
是私有属性。这个答案,因此无法正常工作(在本机动作条)。
searchViewSearchIcon
is a private attribute. This answer therefore does not work (on the native ActionBar).
这篇关于Android的搜索查看图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文