更改操作栏颜色的android [英] Change action bar color in android
本文介绍了更改操作栏颜色的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用我的应用程序的主题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?
推荐答案
我觉得这可能帮助:<一href="http://developer.android.com/guide/topics/ui/actionbar.html#AdvancedStyles">http://developer.android.com/guide/topics/ui/actionbar.html#AdvancedStyles
这篇关于更改操作栏颜色的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文