Android 动作栏样式使动作栏消失

Android 动作栏样式使动作栏消失,android,android-actionbar,android-styles,Android,Android Actionbar,Android Styles,我正在尝试我的动作条主题。当我应用我的主题时,预览(在Android Studio中)会正确地呈现它,但在设备上运行时,操作栏完全丢失 我的值/styles.xml文件: <resources> <style name="AppBaseTheme" parent="android:Theme.Holo.Light"> <item name="android:windowBackground">@color/background_gray

我正在尝试我的动作条主题。当我应用我的主题时,预览(在Android Studio中)会正确地呈现它,但在设备上运行时,操作栏完全丢失

我的值/styles.xml文件:

<resources>
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
        <item name="android:windowBackground">@color/background_gray</item>
        <item name="android:actionBarStyle">@style/GreenActionBar</item>
    </style>
    <style name="AppTheme" parent="AppBaseTheme"/>

    <style name="GreenActionBarBase">
        <item name="android:background">#00c341</item>
    </style>

    <style name="GreenActionBar" parent="GreenActionBarBase"/>    

</resources>

@颜色/背景灰
@样式/绿色操作栏
#00c341
预览:

运行时:

我遗漏了什么?


<resources>
    <style name="AppBaseTheme" parent="@style/Theme.Holo.Light">
        <item name="android:windowBackground">@color/background_gray</item>
        <item name="android:actionBarStyle">@style/GreenActionBar</item>
    </style>
    <style name="AppTheme" parent="AppBaseTheme"/>

    <style name="GreenActionBarBase" parent="@style/Widget.THE_STYLE_YOU_WANT">
        <item name="android:background">#00c341</item>
    </style>

    <style name="GreenActionBar" parent="GreenActionBarBase"/>    

</resources>
@颜色/背景灰 @样式/绿色操作栏 #00c341

检查答案。我认为你需要为
GreenActionBarBase
找一位家长

是的,这其实是我忽略的。谢谢对于未来的谷歌用户,我选择Widget.Holo.ActionBar.Solid作为其母版。