【发布时间】:2012-10-05 15:42:29
【问题描述】:
使用主题 Theme.Sherlock.Light 时
并使用 searchable.xml
<?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/app_name"
android:hint="@string/location_search_hint"
android:icon="@drawable/action_search"
>
</searchable>
我希望搜索图标采用我自己的@drawable/action_search,它是白色的,但它忽略了它,它采用了浅色主题中的那个。
我怎样才能改变它?
【问题讨论】:
-
知道会很有趣。你找到解决方案了吗?
-
还没有,我认为这是一个 android 错误:code.google.com/p/android/issues/… 可能有解决方案,但我还没有尝试过 stackoverflow.com/questions/11085308/…
-
如果您尝试以下解决方案会发生什么?任何错误信息?例外?
标签: android actionbarsherlock searchview