I tried to use the Holo Light theme with dark action panels, as recommended in the Android manuals. .
This is my themes.xml file:
<resources> <style name="Theme.MyApp" parent="@android:style/Theme.Holo.Light"> <item name="android:actionBarStyle">@style/Widget.MyApp.ActionBar</item> </style> <style name="Widget.MyApp.ActionBar" parent="@android:style/Widget.Holo.ActionBar"> <item name="android:background">@android:drawable/dark_header</item> <item name="android:titleTextStyle">@style/MyApp.ActionBar.TextAppearance</item> </style> <style name="MyApp.ActionBar.TextAppearance" parent="@android:style/TextAppearance"> <item name="android:textColor">@android:color/primary_text_dark</item> </style> </resources>
The result without using the search interface is expected, but when I use the SearchView background from the Holo.Light theme:


Is there a way to change the default style of SearchView to ActionBar?
Rui carneiro
source share