Android 设置actionBarStyle时不显示状态栏

Android 设置actionBarStyle时不显示状态栏,android,android-actionbar,android-manifest,android-styles,Android,Android Actionbar,Android Manifest,Android Styles,我正试图通过XML更改活动中的操作栏 正如在和类似答案中所建议的,我定义了两种风格。在我的清单文件的活动(或应用程序)标记中设置一个AppTheme。另一个用于定义动作栏本身,MyActionBarTheme。非常简单: <style name="AppTheme" parent="Theme.AppCompat.Light"> <item name="actionBarStyle">@style/MyActionBarTheme</item> <

我正试图通过XML更改活动中的操作栏

正如在和类似答案中所建议的,我定义了两种风格。在我的清单文件的活动(或应用程序)标记中设置一个
AppTheme
。另一个用于定义动作栏本身,
MyActionBarTheme
。非常简单:

<style name="AppTheme" parent="Theme.AppCompat.Light">
    <item name="actionBarStyle">@style/MyActionBarTheme</item>
</style>

<style name="MyActionBarTheme" parent="@android:style/Widget.Holo.Light.ActionBar">
    <item name="android:background">#F00</item>
</style>

@风格/动作风格
#F00
我为整个应用设置了AppTheme:

<application android:theme="@style/AppTheme">
    <activity android:name=".settings.DeleteAccountActivity"
              android:label="Delete Account">
    </activity>
...

...
我甚至试图为我的活动专门设定主题:

<application android:theme="@style/AppTheme">
    <activity android:name=".settings.DeleteAccountActivity"
              android:label="Delete Account"
              android:theme="@style/AppTheme">
    </activity>
...

...
我知道这是多余的

结果是:

如果我没有设置actionBarStyle,我会看到标准的动作栏。但是,如果我设置actionBarStyle,actionBar将完全消失

我试过其他一些东西,比如

@style/MyActionBarTheme

@style/MyActionBarTheme

或者专门设置
true

和使用

<style name="MyActionBarTitleText"
       parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
    <item name="android:textColor">#F00</item>
</style>

#F00
但同样的事情也发生了。操作栏完全消失。你知道这是什么原因吗?我怎样才能解决

更新 我只是注意到我设置了“actionBarStyle”而不是“android:actionBarStyle”。但当我编写“android:”时,它仍然没有使用
MyActionBarTheme
,而是看起来我根本没有设置“actionBarStyle”