Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java light action bar支持库:为什么不工作?_Java_Android_Xml - Fatal编程技术网

Java light action bar支持库:为什么不工作?

Java light action bar支持库:为什么不工作?,java,android,xml,Java,Android,Xml,我正在使用SupportV7库,并以我在valus-v11中设置的风格使用 <style name="AppBaseTheme" parent="Theme.AppCompat.Light"> 问题是ActionBar是黑色的,我想要浅色的。此外,对话是黑暗的,我想轻。我该怎么修理 这里写着 用于灯光主题的Theme.AppCompat.Light。但不起作用检查此链接 根据您的需要定制。查看父样式@android:style/Widget.Holo.Light.ActionBar

我正在使用SupportV7库,并以我在valus-v11中设置的风格使用

<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
问题是ActionBar是黑色的,我想要浅色的。此外,对话是黑暗的,我想轻。我该怎么修理

这里写着

用于灯光主题的Theme.AppCompat.Light。但不起作用

检查此链接

根据您的需要定制。查看父样式@android:style/Widget.Holo.Light.ActionBar


如果api级别为11,为什么需要SupportLibrary?
<style name="Theme.Styled" parent="@android:style/Theme.Holo.Light">
    <item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>
</style>

<style name="Widget.Styled.ActionBar" 
    parent="@android:style/Widget.Holo.Light.ActionBar">
    <item name="android:background">@drawable/ab_custom_solid_styled</item>
    <item name="android:backgroundStacked"
        >@drawable/ab_custom_stacked_solid_styled</item>
    <item name="android:backgroundSplit"
        >@drawable/ab_custom_bottom_solid_styled</item>
</style>