我有一个带有 Theme DarkActionBar 的 Sherlock 操作栏,因此我可以在操作栏中获得白色搜索图标。
但是,当我这样做时,我的 contextMenu 的子菜单(由弹出窗口决定 - 就像 AlertDialog 一样)这个对话框的主题就像它的父级一样是黑暗的,我希望它是 Light 的。
我该怎么做?获取上下文菜单选项的白色搜索图标(深色主题)和浅色主题?
这是我的styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="StyledIndicators" parent="@style/Theme.SherlockCustom">
<item name="vpiTabPageIndicatorStyle">@style/CustomTabPageIndicator</item>
<item name="vpiTabTextStyle">@style/CustomTabPageIndicator.Text</item>
</style>
<style name="CustomTabPageIndicator" parent="Widget.TabPageIndicator">
<item name="android:background">@drawable/custom_tab_indicator</item>
</style>
<style name="CustomTabPageIndicator.Text" parent="Widget.TabPageIndicator.Text">
<item name="android:textColor">#FF555555</item>
</style>
<style name="CustomTheme.TitleActionBar" parent="@style/TextAppearance.Sherlock.Widget.ActionBar.Title">
<item name="android:textColor">#FFFFFF</item>
</style>
<style name="CustomTheme.ActionBarStyle" parent="Widget.Sherlock.ActionBar">
<item name="background">@drawable/gradiente_titlebar</item>
<item name="android:background">@drawable/gradiente_titlebar</item>
<item name="titleTextStyle">@style/CustomTheme.TitleActionBar</item>
<item name="android:titleTextStyle">@style/CustomTheme.TitleActionBar</item>
</style>
<style name="Theme.SherlockCustom" parent="@style/Theme.Sherlock.Light.DarkActionBar">
<item name="actionBarStyle">@style/CustomTheme.ActionBarStyle</item>
<item name="android:actionBarStyle">@style/CustomTheme.ActionBarStyle</item>
<item name="spinnerDropDownItemStyle">@style/Theme.Sherlock.Light</item>
<item name="android:spinnerDropDownItemStyle">@style/Theme.Sherlock.Light</item>
<item name="spinnerItemStyle">@style/Theme.Sherlock.Light</item>
<item name="android:spinnerItemStyle">@style/Theme.Sherlock.Light</item>
<item name="popupMenuStyle">@style/Theme.Sherlock.Light</item>
<item name="android:popupMenuStyle">@style/Theme.Sherlock.Light</item>
<item name="actionDropDownStyle">@style/Theme.Sherlock.Light</item>
<item name="android:actionDropDownStyle">@style/Theme.Sherlock.Light</item>
<item name="android:alertDialogStyle">@style/Theme.Sherlock.Light</item>
</style>
</resources>