How to change the Action bar text and background properties?

别来无恙 提交于 2019-12-12 11:23:40

问题


Here is my style for the action bar. I would like to change the text and background properties. But the changes are not being applied to the app. Where am I making mistake?

This is my style.xml

<style name="AppTheme" parent="@android:style/Theme.Holo.Light">    
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>

<style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:windowBackground">@color/white</item>
<item name="android:background">@color/white</item>
<item name="android:drawableBottom">@color/actionbar_title_color</item>
<item name="android:textSize">@dimen/actionbar_text_size</item>
<item name="android:textColor">@color/black</item>    
</style>

回答1:


It worked. It was my mistake. I was changing the style in the values folder. Since I am working on ICS I should have changed it in values-14 folder.



来源:https://stackoverflow.com/questions/12368565/how-to-change-the-action-bar-text-and-background-properties

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!