【发布时间】:2015-03-25 00:32:17
【问题描述】:
我正在尝试使用背景颜色设置我的操作栏的样式。我还在操作栏中显示的 android 清单文件中给出了标签。但是当我尝试使用 Style.xml 更改背景颜色时,它会更改背景颜色但不显示标签。 下面是样式 xml
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="actionBarStyle">@style/MyActionBar</item>
</style>
<style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
<item name="background">@color/actionbarcolor</item>
</style>
能否请您告诉我,我应该进行哪些更改,以便在应用背景颜色后也显示标签名称。
我在清单文件的应用程序级别应用了主题“AppTheme”。
【问题讨论】:
标签: android