我用我的应用程序的主题Theme.Black。在这个主题的动作条为灰色。我怎么可以改变颜色我的行动吧?这是我的尝试:
I using in my app theme Theme.Black. In this theme action bar is gray. How I can change color my action bar? This is my try:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="mytheme" parent="@android:style/Theme.Black" >
</style>
<style name="Widget.MyApp.ActionBar" parent="@android:style/Widget.ActionBar">
<item name="android:background">@android:color/black</item>
</style>
</resources>
但不工作。任何想法?
but doesn't work. Any ideas?
我觉得这可能帮助:http://developer.android.com/guide/topics/ui/actionbar.html#AdvancedStyles